Thursday, April 28, 2011

Re: Foldings: why to they unfold below if I type a quote ( ' or ")

On Apr 28, 10:31 am, Paul <google01...@rainslide.net> 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

No comments:

Post a Comment