I try to keep the foldtext (the visible line if something is folded)
indented the same like the unfolded first line. So I keep the overall
indentation regardless if parts get interrupted by 'foldtext'.

For tabsize of 4 I do it like this:

foldtext=repeat(' ',indent(v:foldstart)-indent(v:foldstart)/
4).getline(v:foldstart)


However, sometimes the indentation is done by *spaces* instead of
tabs. So I can't use the above formula.

So I would have to count spaces and tabs separately etc...I haven't
got a clue how to find out dynamically how many spaces to insert...
Anyone?

 Felix

-- 
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

Reply via email to