diff options
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 |