diff options
author | Adam Hovorka <[email protected]> | 2020-06-13 20:54:03 -0600 |
---|---|---|
committer | Adam Hovorka <[email protected]> | 2020-06-13 20:54:03 -0600 |
commit | 20bbb154467e63ce6fbae48c13fac9d3fba95587 (patch) | |
tree | 53d5024d203b65ddd2503a2bf2e059d26a41a820 /base/vimrc | |
parent | d8dd2f1df875ca8cf3a35d463ba00038d87841ac (diff) |
Normalize autocmd calls in vimrc
Diffstat (limited to 'base/vimrc')
-rw-r--r-- | base/vimrc | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -245,9 +245,7 @@ nnoremap <leader>N :call NumberToggle()<cr> " Open to last position ====---- -if has("autocmd") - au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif -endif +au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif " Custom functions ====---- @@ -270,9 +268,9 @@ endfunction au BufNewFile,BufRead * call SetLocalOptions(bufname("%")) " To move elsewhere ====---- +au Syntax json normal zR au BufNewFile,BufRead *.less set filetype=less -autocmd! BufWritePost $MYVIMRC source $MYVIMRC -autocmd! BufRead,BufNewFile *.md set filetype=markdown -autocmd! BufRead,BufNewFile *.md set spell -autocmd Syntax json normal zR -packadd! matchit +au! BufWritePost $MYVIMRC source $MYVIMRC +au! BufRead,BufNewFile *.md set filetype=markdown +au! BufRead,BufNewFile *.md set spell +pa! matchit |