Ⅰ. 插件描述
[Deprecated in favor of lexima.vim] vim-endwise implementation in vim-smartinputⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'cohama/vim-smartinput-endwise'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'cohama/vim-smartinput-endwise'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'cohama/vim-smartinput-endwise'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/cohama/vim-smartinput-endwise
Ⅳ. 文档说明
# vim-smartinput-endwisevim-endwise
implementation in vim-smartinput
INTRODUCTION
vim-smartinput-endwise
is an extension of vim-smartinput
to provide thefeature of vim-endwise
.
You can avoid a confliction between vim-endwise
and vim-smartinput
.
USAGE
This plugin requires vim-smartinput
.
Write bellow in your vimrc
NeoBundle 'kana/vim-smartinput'
NeoBundle 'cohama/vim-smartinput-endwise'
call smartinput_endwise#define_default_rules()
and you can use this plugin at once.
For example,
def foo()|
is expanded to
def foo()
|
end
. | represents the cursor.
TODO
Currently, only Ruby, Vim script and sh (zsh) are available and the
others (Lua, VB (VBA) and Elixir) are not implemented yet.