diff options
author | Alexis Hovorka <[email protected]> | 2020-10-27 11:02:11 -0600 |
---|---|---|
committer | Alexis Hovorka <[email protected]> | 2020-10-27 11:02:11 -0600 |
commit | d852ff242cf2990649d1805055714a8240c3a85a (patch) | |
tree | baf803e5830ccba958bb4b0b83ac2d4178bf3e7f /base | |
parent | aeae7fa354af8f1f949109283848146cd8cdb037 (diff) |
[refactor] vimrc s/autocmd/au/
Diffstat (limited to 'base')
-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 |