Thursday, April 28, 2011

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



On Thu, Apr 28, 2011 at 10:31 AM, Paul <google01239@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

Thanks Paul, I just dropped it in my vimrc and seems to work, although when I comment it and reload the vimrc, the foldings still work better (so maybe there is another factor)... I am going to try it for a while and I'll post back on the results in a day or two.
 

--

.

--
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

--
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: