Ⅰ. 插件描述
Rubyの後置記法を支援するVimプラグインⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'qureana/backend-if-face-rejection'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'qureana/backend-if-face-rejection'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'qureana/backend-if-face-rejection'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/qureana/backend_if
Ⅳ. 文档说明
backend_if

このプラグインはRubyの後置記法を支援します.
使用可能なのは本文が1行のif,unless,while,until文です.
Installation
To install using NeoBundle:
Add this line to your .vimrc file
NeoBundle "kuranari/backend_if"
autocmd FileType ruby nnoremap <Leader>t :ToggleStatement<CR>Usage
Open or create a Ruby File like this:
if true
p "Hello world!"
endType <Leader>t or :ToggleStatement on the if statement, you will see:
p "Hello world!" if trueAnd type gt again, you will see:
if true
p "Hello world!"
end