Sunday, April 15, 2012

Re: Behavior of fold when adding new fold

On 15:32 Sun 15 Apr , Yichao Zhou wrote:
> Hi, everyone.
> I use fdm=marker. The problem is when you add a fold, the fold
> after it will automatically open.
>
> For example, type {{{<CR>}}}<ESC>zcggO{{{
>
> You will find the second fold is opened automatically. This is
> annoying when editing. Must I reclose all the folding when add a new
> one?
>
> Regards,
> Yichao Zhou
>
> --
> 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

The tip is to first put closing marker }}} and then the opening one {{{.
You can also use {{{1 (without adding closing marker, the next {{{1 serves as
opening and closing marker)

Best,
Marcin

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