jan wrote:
> Hello,
>
> I am taking lengthy notes on something. I want to write a table of contents to
> find my way around these notes. I want to jump to a specified place in the
> notes-file from this TOC.
>
> Do I have to create a custom tagfile?
> Are there better ways to achieve this?
>
> Pointers to relevant help-sections are very welcome.
For making my own notes I just use existing VIM help facilities,
like this
:sav ~/.vim/doc/notes-to-buy.txt
In file notes-to-buy.txt I then just use normal vim help mark-up:
/----
| *my-to-buy-each-weak*
|
| 1. Gasoline
| 2. Red socks
|
| *my-to-buy-each-day*
|
| 1. Newspaper
| 2. Bread
|
| *my-shopping-lists*
|
| |my-to-buy-each-weak| Weekly
| |my-to-buy-each-day| Daily
|
| ==============================================================================
| vim:tw=78:ts=8:ft=help:norl:spell:spl=ru,en,de:modifiable:noreadonly
\----
After new file is added, or existing file is changed, you just
do :helptags ~/.vim/doc/ (I have defined an shortcut command for
that - MyCompileHelp)
Common prefix for all notes tags ("my-" in my case) helps to
keep private notes separated from global vim help.
Note modifiable, noreadonly options in own help-file modeline -
otherwise file will not be editable if you open it using :help
my-.... command.
This notes system is depends a lot on the good selection of the
tag names. For example, using :help my*pattern<C-D> I can see the
list of all my notes which are pattern- related, like this:
my-patterns my-normal-mode-range-is-pattern
my-inverse-patterns
my-inverse-pattern-poor-mans-solution
my-pattern-withoffset
my-search-inverse-pattern-poor-mans-solution
my-search-inverse-pattern
--
Anton
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---