h usr_28.txt
to fold html tags
nnoremap <leader>ft Vatzf
今天正好在找这个功能,赞
peter, 请教两个问题:
对ruby代码设置 :set foldmethod=syntax无效,foldmethod只能为manual,其它选择包项indent都无效。
:set foldmethod=syntax
第一条评论中的Vatzf中的at是啥意思,为什么只适用于html,.rb文件就不行?
Vatzf
at
@camel Thx for your support, and my pleasure to answer your questions:-)
I just test the below in one of my user.rb file, both worked
user.rb
: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
z-D
foldmethod
manual
:h fold-methods
at is just for html and xml, as the doc goes
: h v_at : h tag-blocks
[Link](http://example.com/)
*Italic*
**Bold**
* Listed * Items
``` puts "hello" ```
puts "hello"
to fold html tags
今天正好在找这个功能,赞
peter, 请教两个问题:
对ruby代码设置
:set foldmethod=syntax无效,foldmethod只能为manual,其它选择包项indent都无效。第一条评论中的
Vatzf中的at是啥意思,为什么只适用于html,.rb文件就不行?@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.rbfile, both workedbut if you want to delete the folding with
z-D, you have to set thefoldmethodback tomanualfirst. check:h fold-methodsfor more infothe second question
atis just for html and xml, as the doc goes