Let’s assume you have a cursor at a closed fold as in the picture.
alt text http://dl.getdropbox.com/u/175564/foldEdit.png
How can you edit the title of SMALLAPPS without opening the fold in Vim?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you want to edit the first line of the folded block, or the string that appears when the fold is closed? If it’s the former, I don’t think you can do it without opening the fold. If it’s the latter, then have a look at the foldtext option. It can be any expression. This expression is evaluated to create this string.
From the docs:
An alternative is using the marker folding method. With it, you can enter any string before the fold marker and it will appear when the fold is closed.
From the docs: