sponsor Vim development Vim logo Vim Book Ad

sjump.vim : Display labels in the sign area and jump to selected label

 script karma  Rating 6/3, Downloaded by 824  Comments, bugs, improvements  Vim wiki

created by
Marko Mahnič
script type
When executed the plugin will display labels in the sign area and wait
for the user to enter a label. Then it will jump to the line with the
entered label and hide the labels (by removing the signs).

The plugin is mapped to the sequence gl (Goto Line). The mapping can
be disabled with:
   let g:sjump_enable_keymap = 0

To put the mapping on another key:
   nmap <F9> :call sjump#JumpToLabel()<cr>

More configuration options are in help (:help sjump).

Requires: +signs
Use :version to see if +signs is enabled.
install details
Unpack into vim runtime directory (eg. ~/.vim/).

To generate the help tags open the installed file doc/sjump.txt in Vim and execute
   :helptags %:p:h

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
sjump.zip 0.5.1 2010-10-27 7.0 Marko Mahnič * Jump to label with 2 chars didn't work (reported by Jun Yamagiwa)
* Invalid entries caused an error
sjump.zip 0.5 2010-10-26 7.2 Marko Mahnič 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.