aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Hovorka <[email protected]>2020-10-27 11:02:11 -0600
committerAlexis Hovorka <[email protected]>2020-10-27 11:02:11 -0600
commitd852ff242cf2990649d1805055714a8240c3a85a (patch)
treebaf803e5830ccba958bb4b0b83ac2d4178bf3e7f
parentaeae7fa354af8f1f949109283848146cd8cdb037 (diff)
[refactor] vimrc s/autocmd/au/
-rw-r--r--base/vimrc11
1 files changed, 6 insertions, 5 deletions
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 <leader>N :call NumberToggle()<cr>
-"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