autocmds for persistent folds

This commit is contained in:
ManjaroOne666 2018-02-01 17:46:16 +00:00
parent 156b8ceaa1
commit 6d122971d5
1 changed files with 7 additions and 0 deletions

7
vimrc
View File

@ -285,6 +285,13 @@ nnoremap <F2> :set invpaste paste?<CR>
set pastetoggle=<F2>
set showmode
" persistent folds
augroup AutoSaveFolds
autocmd!
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview
augroup END
" set custom syntax highlighting
augroup syntaxhighlighting
autocmd BufNewFile,BufRead *.html set syntax=html_custom