vim_movement


Ⅰ. 插件描述

Movement over Vim functions with ]m etc.

Ⅱ. 基本信息

创建日期:  2012-04-04
使用用户:  2
Github星:  1
插件作者:  Ingo Karkat

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

DESCRIPTION
This filetype plugin provides movement commands and text objects for Vim
functions.
This is duplicated from $VIMRUNTIME/ftplugin/vim.vim, using the (IMHO) correct
mappings "move to method", not "move to paragraph".

USAGE
                        Move around Vim functions:
]m                      Go to [count] next start of a function.
]M                      Go to [count] next end of a function.
[m                      Go to [count] previous start of a function.
[M                      Go to [count] previous end of a function.

im                      "inner method" text object, select [count] function contents.
am                      "a method" text object, select [count] functions, including
                        the function definition and 'endfunction'.

添加新评论