vim-centaur


Ⅰ. 插件描述

Operator for vertically centering a motion on the screen

Ⅱ. 基本信息

创建日期:  2013-03-19
使用用户:  1
Github星:  1
插件作者:  Tom McDonald

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

centaur.vim

Centaur.vim defines a Vim operator to vertically center the block of
lines defined by a motion command on the screen. That is, the matching
lines will be scrolled nicely into view.

For example, to vertically center a paragraph, you'd type gzip (gz
for the operator, and ip for "inner paragraph").

When the block of lines defined by the motion command is larger than
the viewport, the first line of the block is scrolled to the top of the
viewport.

Installation

If you don't have a preferred installation method, I recommend
installing pathogen.vim, and
then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/tommcdo/vim-centaur.git

Once help tags have been generated, you can view the manual with
:help centaur.

添加新评论