From de7f71dde049a75daf6373765854d22adfc7b55f Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Fri, 9 Jun 2017 19:31:25 -0400 Subject: [PATCH] Save and restore folds in vim --- vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vimrc b/vimrc index 0341be7..9e82685 100644 --- a/vimrc +++ b/vimrc @@ -211,6 +211,13 @@ if &term =~ '256color' set t_ut= endif +" Save and restore folds +augroup remember_folds + autocmd! + autocmd BufWinLeave *.* silent! mkview + autocmd BufWinEnter *.* silent! loadview +augroup END + " Disable arrow keys map map