Ⅰ. 插件描述
Rest your pinkies.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'lambdalisue/pinkyless-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'lambdalisue/pinkyless-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'lambdalisue/pinkyless-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/lambdalisue/pinkyless.vim
Ⅳ. 文档说明
pinkyless.vim
Even Vimmer use them pinkies a lot. Rest your pinkies by using this plugin :-)
Concepts
- It would be nice if Sticky shift could be used in Vim to reduce the opportunities of hitting
Shift - It would be nice if the sticky shift above are also available in a single character replacement mode (
r) - It would be nice if there is a software Capslock while Capslock in normal mode breaks everything.
Usage
- Hit
;to start sticky shift mode in Insert/Command/Select mode.
In sticky shift mode, hit<Space>to type a trigger key (in this case,;) - Hit
rto start sticky replace mode in Normal mode.
In sticky replace mode, hit;to start the sticky shift mode. - Hit
<F10>to start Capslock mode in Insert/Command/Select mode.
In Capslock mode, hit<F10>again to leave or<Esc>to enter Normal mode.
The behaviours are customizable but not documented yet.
Reference
The initial concept comes from http://vim-jp.org/vim-users-jp/2009/08/09/Hack-54.html (in Japanese)