From: Samir Benmendil Date: Mon, 3 Feb 2014 19:46:18 +0000 (+0100) Subject: vim: don't save local options in views X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/420692d9f97308e7a016fa6bf4ad6988f1280d33 vim: don't save local options in views --- diff --git a/vim/vimrc b/vim/vimrc index b9ebb67..111300a 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -192,6 +192,7 @@ nnoremap @=(foldlevel('.')?'za':"\") vnoremap zf " save and restore folds +set viewoptions=folds,cursor " don't save local options autocmd BufWinLeave *.* mkview autocmd BufWinEnter *.* silent loadview