sponsor Vim development Vim logo Vim Book Ad

WhereFrom : WhereFrom helps one locate where maps, functions, or commands are defined

 script karma  Rating 12/6, Downloaded by 963    Comments, bugs, improvements  Vim wiki

created by
Charles Campbell
 
script type
utility
 
description
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)
 
install details
* 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).
 

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
WhereFrom.vim.gz 2 2005-04-20 6.0 Charles Campbell * 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
ip used for rating: 54.89.10.19

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.
   
SourceForge.net Logo