Currently my fold settings are like this in ~/.vimrc file.
set foldmethod=indent
set foldtext=MyFoldText()
function MyFoldText()
let line = getline(v:foldstart)
return line . ' ...'
endfunction
set fillchars=fold:\
With these settings, a text like the following:
1.1 Introduction
In this chapter we will cover all the important concepts in brief.
The concepts covered in this chapter are:
a) Groups
b) Fields
c) Real analysis
d) Concrete analysis
appears like this on full folding:
1.1 Introduction
In this chapter we will cover all the important concepts in brief. ...
a) Groups ...
So, here you can see that the first line of folded text appears with a
... appended in the end.
However, what I want is thatt on folding, the first line of text in
the fold should not appear and the ... is appended to the last
unfolded line just above the folded text? So, for the above text, I
would want the following on complete folding.
1.1 Introduction ...
This is similar to how folding happens in many other IDE editors.
Please let me know if this is possible.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---