里皮对国足的表现很失望 怒斥球员的比赛态度
7 questions
1
vote
0
answers
64
views
Stop foldmarker inserting hash
I my folds are set with foldmarker={{{,}}}. When I create a fold it inserts a comment # char before the marker. So it inserts #{{{. How do I stop it doing this?
I have syntax highlighting (and it ...
1
vote
1
answer
71
views
Automatically fold particular content, in any filetype
I often find myself patching projects that add a relatively big (23 lines out of a 37-line file? ) license-header to every. single. file.
Is there a plugin or straightforward way I can add a global ...
0
votes
1
answer
352
views
Why does vim ignore commentstring when folding (foldmethod=marker)
I am editing a HTML document (filetype=html) in vim. foldmarker is set to {,}, foldmethod to marker and commentstring to <!--%s-->.
When I visually select a region and use zf to create a ...
2
votes
0
answers
59
views
Syntax highlighting depending on whether whole line is commented
Is it possible to have vim highlight folds differently depending on whether every line in a fold is only comments or whitespace? In that case, how?
14
votes
2
answers
8k
views
Hide certain lines completely (not folding)
I would like to be able to hide certain lines in my buffer from showing up at all (and being able to toggle seeing them). I found similar questions, but they don't solve my problem. I don't want to ...
2
votes
1
answer
798
views
Folding my .vimrc doesn't work as expected
To structure my .vimrc a bit better I decided to create a custom fold expression in the file .vim/after/ftplugin/vim/folding.vim which gets loaded automatically for my .vimrc:
" The purpose of this ...
21
votes
3
answers
12k
views
How to fold comments?
The syntax foldmethod is great, but sometimes I just want to fold the comments in a source file.
Also syntax folding of comments only works for C-Style comments like:
/*
...
*/
But not for comment ...