Wikia

Vim Tips Wiki

Wrap visual selection with fold markers

Talk0
1,610pages on
this wiki
Revision as of 08:46, September 29, 2008 by JohnBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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>

CommentsEdit

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


Advertisement | Your ad here

Around Wikia's network

Random Wiki