diff options
Diffstat (limited to 'base/vimrc')
-rw-r--r-- | base/vimrc | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |