repeater.vim


Ⅰ. 插件描述

Repeat an item {n} times

Ⅱ. 基本信息

创建日期:  2010-04-19
使用用户:  1
Github星:  1
插件作者:  Jon-Michael Deldin

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Repeater.vim allows you to repeat items {n} times. For example, if you have a
section header in ReStructuredText and you need to insert an underbar of
equals signs that's the same length, you can simply move down a line and
invoke :Repeater =. You can also specify a length, but the real utility of
this plugin is calculating the length for you.

Examples

  1. Insert 78 equals signs:
        :Repeater = 78
  2. Insert a ReST or Markdown section header for the current line:
        :Repeater -
  3. Insert "THIS IS FILLER" 999 times:
        :Repeater THIS IS FILLER.  999

添加新评论