Ⅰ. 插件描述
Go to the autoload function definition in VimL.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'sgur/vim-gf-autoload'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'sgur/vim-gf-autoload'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'sgur/vim-gf-autoload'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/sgur/vim-gf-autoload
Ⅳ. 文档说明
gf-autoload
Go to the autoload function definition in VimL.
Summary
gf-autoload is a Vim plugin to extend gf and other commands.
With this plugin, you can open the file and locate the cursor to the function
definition from the autoload function identifier under the cursor.
(Additional) the functionality of jumping to the script-local function
definition is also provided.
Uasge
Type gf on foo#bar() or s:foo() (<SID>foo()) function.