arpeggio


Ⅰ. 插件描述

Vim plugin: Mappings for simultaneously pressed keys

Ⅱ. 基本信息

创建日期:  2008-11-04
使用用户:  156
Github星:  196
插件作者:  Kana Natsuno

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

arpeggio is a Vim plugin to define another type of |key-mapping| calledarpeggio-key-mapping -- it consists of 2 or more keys ({lhs}) and it will beexpanded to another key sequence ({rhs}) whenever all keys in {lhs} aresimultaneously pressed.  For example: Arpeggio inoremap jk  <Esc> " OR call arpeggio#map('i', '', 0, 'jk', '<Esc>')With the above definition, you can input <Esc> in Insert mode by pressing "j"and "k" simultaneously, while you can move the cursor by pressing "j" or "k"solely.The concept of this plugin is derived from Emacs' key-chord.el (1), but thereare the following differences:- Number of keys to be simultaneously pressed is unlimited.- Custom delay for each key is supported (see |g:arpeggio_timeoutlens|).  This is a generalization of space-chord.el (2).(1) http://www.emacswiki.org/emacs/key-chord.el(2) http://www.emacswiki.org/emacs/space-chord.elRequirements:- Vim 7.2 or laterLatest version:http://github.com/kana/vim-arpeggioDocument in HTML format:http://kana.github.com/config/vim/arpeggio.html

添加新评论