中国网:海南千名农民工欢聚一堂共享美味年夜饭
4 questions
2
votes
1
answer
78
views
How can I fold some lines on opening a buffer?
I want to fold from "Copyright" to "CONNECTION" every time I open a .c or .h file, so I don't have to see it. The license does have newlines in it in my files, so selecting shouldn'...
0
votes
2
answers
522
views
Vim: Foldtext contain all content, instead of only the first line
Would like to have all content of the folded block, instead of only the first line.
My current foldsettings are:
set foldmethod=marker
set foldmarker={,}
Example how my data is structured:
{
cows
...
1
vote
2
answers
399
views
separating folds with constant amount of newlines
Is there a succinct way to separate folds, open or closed, by the same number of newlines throughout the buffer? I'm using fold by indent. The goal is two visible blank lines between each fold (...
8
votes
1
answer
554
views
Count number of visible lines in document with folding?
I'd like to write a plugin that automatically sets the foldlevel of a newly opened document so that as much of the document fits on the screen as possible. (In other words, I'd like to make sure short ...