What would be a good way (if possible at all) to have vim link, say, a
table of contents to each section?
A few thoughts:
You could also use tags, I guess, and the use taglist or a similar plugin.
There are a few plugins around (e.g. my own ttoc) that display an overview of a buffer's structure (e.g. lines that match a certain regexp like headings) and that let users quickly jump from section to section. Similar to the example in :h definition-search, you could also use the following command:
map <F4> :ilist! /\\section/<Bar>let nr = input('Match: ')<Bar>exe 'ijump! ' . nr .' /\\section/'<CR>
]], [[ let you jump between sections -- if the filetype plugin supports it.
HTH
Tom
--
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:
Post a Comment