On Apr 28, 10:31 am, Paul <[email protected]> wrote: > On Wed, Apr 27, 2011 at 04:26:13PM -0500, David Kahn wrote: > >I am curious if there is a way to make foldings not unfold if I type a > >quote. For example, if I am adding to the header or content in an open > > Maybe this will help, in .vimrc: > > " Don't update folds in insert mode. > aug NoInsertFolding > au! > au InsertEnter * let b:oldfdm = &l:fdm | setl fdm=manual > au InsertLeave * let &l:fdm = b:oldfdm > aug END >
Folding is a window-local feature, and additionally switching windows can mess this up. Improved version here: http://vim.wikia.com/wiki/Keep_folds_closed_while_inserting_text -- You received this message from the "vim_use" 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
