aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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