WhereFrom : WhereFrom helps one locate where maps, functions, or commands are defined
| script karma
Downloaded by 1134
Comments, bugs, improvements
script versions (upload new version)
|The WhereFrom and WF commands search the runtimepath (see |'runtimepath'|) to determine where the setting, function, map, or command was defined. With the "!", WhereFrom will continue looking for more than one instance.
WhereFrom[!] functionname(s) WF[!] functionname(s)
WhereFrom[!] map(s) WF[!] map(s)
WhereFrom[!] setting(s) WF[!] setting(s)
WhereFrom[!] command(s) WF[!] command(s)
WF-style commands are available only if the command has not been previously defined, and are provided as a shorthand.
A search is undertaken only for functions, commands, and maps, and then only if the function, command, or map is known to the currently running vim. Determining where settings are set is done using vim's built-in method.
These commands don't search all *.vim files that you may have; it only examines those that lie on your runtimepath in the common directories plugin, ftplugin, colors, compilier, indent, syntax, and the after/ variants. In addition, it also searches the AsNeeded directory (see vimscript#915)
(alpha/beta version available at http://www.drchip.org/astronaut/vim/index.html#WHEREFROM)
|* As usual with plugins: install it into your .vim/plugin (Windows: vimfiles\plugin) directory.
* gunzip WhereFrom.vim.gz
The next time you run vim, the embedded HelpExtractor (vimscript#748) will make the help for WhereFrom available (and remove itself from the WhereFrom script).
Click on the package to download.
ip used for rating: 126.96.36.199
||* Now includes $HOME/.vimrc on the list of files to be searched
* GetLatestVimScripts auto-update enabled
* Gives a message if unable to find a command/map/option