functionlist.vim


Ⅰ. 插件描述

This plugin makes it easy to navigate between functions in a long file.

Ⅱ. 基本信息

创建日期:  2012-01-07
使用用户:  1
Github星:  2
插件作者:  Sandeep CR

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/functionlist-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/functionlist-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/functionlist-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/functiontracker.vim

Ⅳ. 文档说明

This plugin displays a list of all lines with word 'function' in current file/buffer. This list is sorted on function name.

It also maintains a list of recently accessed functions at the top so that you can switch between functions easily, This list is updated when the user navigates to the function list window. The required function can be quickly reached in the list by pressing the first letter of the function. Pressing 'p' cycles through all the functions starting with 'p'.

This Plugin is best suited for working with  long source code files with functions defined with 'function' keyword.

screen shot http://i56.tinypic.com/11hdhxg.png

command to open function list

:Flisttoggle

To make this plugin really useful you have to assign a shortcut key for this,
say you want F2 key to open the function list.

you can add the following line in your .vimrc file.

            map <F2> : Flisttoggle <CR>

If you are on windows " the file name would be _vimrc. The .vimrc file is  
usually present in the users home directory.

vimrc file will be hidden in linux so you will have to do a ls -ah to see it.

If the file  is not present you can just add one file with this line only.

you have to Restart vim

Invoking this plugin opens a new vertical  window right to current window

添加新评论