Ⅰ. 插件描述
Make backspace eat multiple whitespace charactersⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/greedybackspace-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/greedybackspace-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/greedybackspace-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/GreedyBackspace.vim
Ⅳ. 文档说明
This script will cause your backspace key to delete all the whitespace characters before the cursor when the cursor is on a whitespace character.
For example, if you typed "x x" and then hit backspace twice, you'd only have "x". This can be especially useful when auto/smart/c/expression indenting is on.
This script isn't very useful if you don't put "set backspace=indent,eol,start" or at least "set backsapce=indent,start" in your vimrc.
(Thanks to Tomi Mickelsson for testing and bug reports.)