From d852ff242cf2990649d1805055714a8240c3a85a Mon Sep 17 00:00:00 2001 From: Alexis Hovorka Date: Tue, 27 Oct 2020 11:02:11 -0600 Subject: [refactor] vimrc s/autocmd/au/ --- base/vimrc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'base') diff --git a/base/vimrc b/base/vimrc index b71e547..fc327fb 100644 --- a/base/vimrc +++ b/base/vimrc @@ -73,7 +73,7 @@ set noerrorbells " don't beep set list set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:· -"autocmd filetype html,xml set listchars-=tab:>. +"au filetype html,xml set listchars-=tab:>. set wildmenu set wildmode=longest:full,full @@ -240,8 +240,8 @@ function! NumberToggle() endfunc nnoremap N :call NumberToggle() -"autocmd InsertEnter * :set norelativenumber -"autocmd InsertLeave * :set relativenumber +"au InsertEnter * :set norelativenumber +"au InsertLeave * :set relativenumber " Open to last position ====---- @@ -271,8 +271,9 @@ au BufNewFile,BufRead * call SetLocalOptions(bufname("%")) au Syntax json normal zR au BufNewFile,BufRead *.less set filetype=less au! BufWritePost $MYVIMRC source $MYVIMRC -autocmd FileType gitcommit set textwidth=72 -autocmd FileType gitcommit set colorcolumn=73 +au FileType gitcommit set textwidth=72 +au FileType gitcommit set colorcolumn=73 +au! BufRead,BufNewFile gitcommit set spell au! BufRead,BufNewFile *.md set filetype=markdown au! BufRead,BufNewFile *.md set spell pa! matchit -- cgit v1.2.3-70-g09d2