(Change to TipImported template + severe manual clean) |
(Move categories to tip template) |
||
Line 10: | Line 10: | ||
|version=6.0 |
|version=6.0 |
||
|rating=3/4 |
|rating=3/4 |
||
+ | |category1=Folding |
||
+ | |category2= |
||
}} |
}} |
||
Use this vmap to enclose a block with fold markers: |
Use this vmap to enclose a block with fold markers: |
||
Line 21: | Line 23: | ||
---- |
---- |
||
− | [[Category:Folding]] |
Revision as of 01:35, 25 April 2008
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.