Vim Tips Wiki
Advertisement
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This tip is deprecated for the following reasons:

As the comment below indicates, you can use the "zf" command.

Tip 475 Printable Monobook Previous Next

created May 18, 2003 · complexity basic · author culley · version 6.0


Use this vmap to enclose a block with fold markers:

vmap <Leader>fold mz:<Esc>'<O// {{{<Esc>'>o// }}}<Esc>`z?{{{<CR>A<Space>

Comments

Prefer the zf command, in combination with foldmethod=marker. See :help zf.


Advertisement