Tuesday, December 25, 2012

Re: Regex for matching the section in vim help files

Hi Marco!

On Di, 25 Dez 2012, Marco wrote:

> On 2012–12–25 Christian Brabandt wrote:
>
> > Why do you need this?
>
> I have personal note files which use the vim help file mechanism for
> hyperlinking and jumping between different documents and sections.
>
> When I write a new section I run a function afterwards which updates
> the table of content at the top of each file. This function deletes
> the old table and goes through the current file and writes an
> up-to-date table of contents.
>
> Is there anything built in I could use instead?

Can't you search for the tag and extract the info from this line or the
line following it?



regards,
Christian
--
Der Hagestolz hat das Unglück, daß ihm niemand seine Fehler frei sagt;
aber der Ehemann hat dies Glück.
-- Jean Paul (eig. Johann Paul Friedrich Richter)

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

No comments: