On 2011-06-04, Eric Weir wrote:
> On Jun 4, 2011, at 3:27 AM, Gary Johnson wrote:
> 
> >> On 2011-06-03, Eric Weir wrote:
> >> 
> >> I want to eliminate the
> >> number of lines and keep the text from the first line of the fold.
> >> And I have absolutely no idea how to go about revising the code to
> >> make it do what I want.
> > 
> > The example at the top of ":help fold-foldtext" does that.  (The
> > line beginning ":set foldtext=v:folddashes...")  Try that and see if
> > it does what you want.
> 
> Thanks, Gary. Comes close. I still get a report of the number of
> lines in the fold. 
> 
> I just plunked the line as is from the help screen into my .vimrc,
> but I can't read it, and don't see how to modify it to get rid of
> the number of lines report.
> 
> Is there a way to do that? 

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.

Regards,
Gary

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