On Jun 2, 2011, at 6:56 AM, Dan Michael wrote: > http://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun
I though this from the above is going to work for me, Dan. But why do something manually when you can do it automatically? To see to it that Vim saves and restores folds when a file is closed and re-opened, add these two lines to your ~/.vimrc: au BufWinLeave * mkview au BufWinEnter * silent loadview Now, each time you close a file, its fold state will be saved and reloaded when you reopen the file in Vim. After doing that, quitting and restarting Vim, then saving a folded file and reopening it, it opened unfolded. My guess is that something is taken for granted in the suggestion above that in my case should not be taken for granted. What am I missing? Thanks, ------------------------------------------------------------------------------------------ Eric Weir Decatur, GA USA [email protected] -- You received this message from the "vim_mac" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
