Sunday, June 5, 2011

Re: Folding


On Jun 5, 2011, at 2:38 AM, Gary Johnson wrote:

That line,

   :set foldtext=v:folddashes.substitute(getline(v:foldstart),'/\\*\\\|\\*/\\\|{{{\\d\\=','','g')

does not include the number of lines in the fold, so either it is
not being executed in your ~/.vimrc or the option is being set
to some other value somewhere after your ~/.vimrc is read.  Execute

   :verbose foldtext?

and see what it reports.  It will show you the current value of the
'foldtext' option and where it was last set.

The report was that the line I inserted was the only one setting foldtext: 

foldtext=v:folddashes.substitute(getline(v:foldstart),'/\*\|\*/\|{{{\d\=','','g')
        Last set from ~/.vimrc  

Is there something other than foldtext that would affect display of the number of lines?

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA
eeweir@bellsouth.net




No comments:

Post a Comment