sponsor Vim development Vim logo Vim Book Ad

definition.vim : Jump to the last place where [command|function|mapping] was set

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

created by
Rom Grk
 
script type
utility
 
description
https://gist.github.com/romgrk/71b119c0baa6b0872f0a88106254ce60

Usage:

:Goto [com|fu|nmap|imap|…] NAME<CR>

Opens the file where it was last-set from, and ~tries~ to jump to the correct line.
I usually find it very useful when I can't remember in which file I defined said command/func/mapping.
Or when I get mad at some plugin that is not correctly defined and I just go “DAMN-IT, I´LL JUST EDIT MANUALLY”
 
install details
This is just a few lines; copy to your vimrc or in $VIM/plugin/, no need for a plugin manager.
 

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
definition.vim 1.0 2016-05-13 7.0 Rom Grk Initial upload
ip used for rating: 18.97.14.85

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.
   
Vim at Github