Ⅰ. 插件描述
Punish yourself (and/or your friends/enemies) for inefficiently using Vim.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '0x0dea/vim-molasses'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '0x0dea/vim-molasses'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '0x0dea/vim-molasses'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/0x0dea/vim-molasses
Ⅳ. 文档说明
# vim-molasses
Punish yourself (and/or your friends/enemies) for inefficiently using Vim.
Philosophy
Beginners to Vim are often advised to map their arrow keys to <nop> in order to break the bad habit of using them to move around. It's a start, but holding h, j, k, and l to move around is scarcely an improvement. Enter vim-molasses, a plugin which actively prevents you from using a given key in rapid succession.
Configuration
vim-molasses observes the values of two variables upon initialization:
g:molasses_keysshould specify (as either a string or an array) the set of keys to monitor and punish against. default:'hjkl'g:molasses_waitshould specify (in milliseconds) the duration between acceptable presses of the same key. default:200
Installation
Do what you did for the other plugins you have installed.