On 17.04.12 23:29, Matteo Landi wrote:
> What about something like this?
> 
> set foldmethod=marker
> set foldmarker=#region,#endregion

Wishing to have zf insert {{{ & }}}, without the default comment
delimiters, I tried:

:set foldmarker={{{,}}}

in addition to the pre-existing .vimrc settings:

set foldmethod=manual   " Restore default for ordinary files.
au BufNewFile,BufRead   ~/misc/unix/Help  setlocal foldmethod=marker
au BufNewFile,BufRead   ~/misc/unix/Help  set foldopen-=block

But in that file, zf steadfastly inserts /*{{{*/ & /*}}}*/.
Is there a way to have zf honour foldmarker?
(I'm using v{motion} to test it.)

I suppose I could just map z$ to append {{{, and z^ to prepend }}}, if
there is no way to tame zf.

OK, I have:
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Apr 18 2011 21:05:41)

and that still seems to be the latest at: http://www.vim.org/sources.php

Erik

-- 
Sometimes you have to outsmart this stuff, it works for Murphy you know.      
- Gene Heskett, on emc-users ML, on PE swelling when tapping a thread.

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

Reply via email to