antonys-macro-repeater


Ⅰ. 插件描述

Repeat macros with the '.' operator in vim

Ⅱ. 基本信息

创建日期:  2017-09-02
使用用户:  3
Github星:  5
插件作者:  Cohen Karnell

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

DISCLAIMER: this was flagrantly stolen from this stackexchange answer. If you use this snippet please give Antony some kind of upvote somewhere.

Antonys-macro-repeater

A basic wrapper around vim's builtin @ to allow you to repeat macros with the . operator. You can repeat macros right after recording them, or right after using them as a replacement for @@.

Installation

This can be downloaded as a plugin with your favorite package manager (I use vundle). You can also simply copy the contents of Antonys-macro-repeater.vim into your vimrc or wherever you keep random functions. Please send me issues if you happen to use this and uncover any bugs (or pull requests if you decide to fix them).

添加新评论