diff --git a/vim/.vimrc b/vim/.vimrc index ba3c62b..393e096 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -92,6 +92,11 @@ set statusline=\ %F\ %m%r%w\ %=\ %{hostname()}\ \ \ %{strlen(&ft)?&ft:'none'}\ % "Remove trailing spaces on save autocmd BufWritePre * :%s/\s\+$//e +"Make vim save and load the folding of the document each time it loads +"Also places the cursor in the last place that it was left +au BufWinLeave * mkview +au BufWinEnter * silent loadview + " Plugins " Nerdtree