vim-fold
13期 2012年3月17日

vim-fold

通过折叠代码,我们可以将代码的细节隐藏,从而让代码的逻辑更为清晰的显现出来。
vim
h usr_28.txt
happypeter 12 个月前

to fold html tags

nnoremap <leader>ft Vatzf
camelsong 11 个月前

今天正好在找这个功能,赞

camelsong 11 个月前

peter, 请教两个问题:

  • 对ruby代码设置
    :set foldmethod=syntax无效,foldmethod只能为manual,其它选择包项indent都无效。

  • 第一条评论中的Vatzf中的at是啥意思,为什么只适用于html,.rb文件就不行?

happypeter 11 个月前

@camel Thx for your support, and my pleasure to answer your questions:-)

the first question

I just test the below in one of my user.rb file, both worked

:set foldmethod=syntax
:set foldmethod=indent

but if you want to delete the folding with z-D, you have to set the foldmethod back to manual first. check :h fold-methods for more info

the second question

at is just for html and xml, as the doc goes

: h v_at
: h tag-blocks