On 01/12/08 12:20, anhnmncb wrote:
> On 2008-11-30, anhnmncb wrote:
>> As title, I want to make a function for foldtext like this:
>>
>> function MY_TeX_BiBFoldText()
>>    let line = getline(v:foldstart, v:foldend)
>>    let matchlinea = match(line, '^\s*author.*{.*}.*') + 1
>>    let matchlinet = match(line, '^\s*title.*{.*}.*') + 1
>>    let matcha = substitute(getline(matchlinea), '^.*{\(.*\)}*.*$', '\1', 'g')
>>    let matcht = substitute(getline(matchlinet), '^.*{\(.*\)}*.*$', '\1', 'g')
>>    let matched = "title: " . matcht . "   author: " . matcha
>>    return v:folddashes . matched
>> endfunction
>>
>> So the folding will show the string "matched", but I find that v:foldstart 
>> and
>> v:foldend have the same value in foldings, so all my foldings show the same
>> string, why?
>>
> Isn't my description clear? If so, let me know please.
>
>

Isn't it clear that I don't know how to help (and that Bram, Dr.Chip, 
Bill, John and the rest are probably either too busy or equally nonplussed)?

In case you didn't know, if you don't get a reply on this list, it 
usually means that none of those who got your mail (and already got to 
the point of opening it) knew a satisfatory answer. Lost mail may happen 
too but it's rare, and with some mail providers including @gmail.com 
it's even possible to get back the mail that "an over-diligent secretary 
sent to the wastebasket" (and I don't mean a human secretary).


Best regards,
Tony.
-- 
One nice thing about egotists: they don't talk about other people.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to