sponsor Vim development Vim logo Vim Book Ad

bibFindIndex : Jump to an index in an alphabetically ordered file

 script karma  Rating 0/0, Downloaded by 983  Comments, bugs, improvements  Vim wiki

created by
Tom Link
script type
This is a small ftplugin that helps jumping to a key in a bibtex file.
It assumes a bibtex file that is alphabethically ordered by the bibitem
key. Maybe some people will find this useful.

Type <LocalLeader>g and a bibtex-key you want to find.
Type <LocalLeader>n to jump to the next key in line.

Example use:

If the keys in the file were:

then '<LL>gab<cr>' would take you to "ab" but '<LL>nab<cr>' to "ac".
Actually BibGotoNextIndex is the main reason for why I wrote this one.

If g:bibFindIndexAllowSpaces is true, the "entry head" may include whitespace.
(I'm not sure if this is legal bibtex, though.)
install details
Copy the file to ~/.vim/ftplugin/bib/

Also available via git

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
bibFindIndex.vim 0.1 2005-11-29 6.0 Tom Link Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.