Ⅰ. 插件描述
WhereFrom helps one locate where maps, functions, or commands are definedⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/wherefrom'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/wherefrom'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/wherefrom'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/WhereFrom
Ⅳ. 文档说明
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)