repeat.vim


Ⅰ. 插件描述

repeat.vim: enable repeating supported plugin maps with "."

Ⅱ. 基本信息

创建日期:  2008-01-31
使用用户:  11026
Github星:  1573
插件作者:  Tim Pope

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# repeat.vim

If you've ever tried using the . command after a plugin map, you were
likely disappointed to discover it only repeated the last native command
inside that map, rather than the map as a whole. That disappointment
ends today. Repeat.vim remaps . in a way that plugins can tap into
it.

The following plugins support repeat.vim:

Adding support to a plugin is generally as simple as the following
command at the end of your map functions.

silent! call repeat#set("\<Plug>MyWonderfulMap", v:count)

Installation

Install using your favorite package manager, or use Vim's built-in package
support:

mkdir -p ~/.vim/pack/tpope/start
cd ~/.vim/pack/tpope/start
git clone https://tpope.io/vim/repeat.git

Contributing

See the contribution guidelines for
pathogen.vim.

Self-Promotion

Like repeat.vim? Follow the repository on
GitHub and vote for it on
vim.org. And if
you're feeling especially charitable, follow tpope on
Twitter and
GitHub.

License

Copyright (c) Tim Pope. Distributed under the same terms as Vim itself.
See :help license.

添加新评论