title, but without changing the order of the lines inside the folded
blocks. I want to order the blocks, but not the lines inside.
I am using a vim help file with the following syntax:
vim:ft=help:fdm=expr
vim:foldexpr=getline(v\:lnum-1)=~'-\\{80}'?'>2'\:getline(v\:lnum-1)=~'=
\\{80}'?'>1'\:getline(v\:lnum)=~'=\\{80}'?'0'\:getline(v\:lnum)=~'-\
\{80}'?'1'\:'='
vim:foldtext=substitute(v\:folddashes.substitute(getline(v
\:foldstart),'\\s*\\*.*',"",""),'^--','\ \ \ \ \ \ ','')
Is there any way using vim (or external unix tools) to do this?
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment