Ⅰ. 插件描述
macros for the ruby languageⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/ruby-macros-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/ruby-macros-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/ruby-macros-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/ruby-macros.vim
Ⅳ. 文档说明
This plugin is for editing ruby files.
Typing "for" on a blank line will result in
for in
end
with the cursor positioned before the "in".
The same will happen with "while", "until",
and so on. But if the line is not blank,
"for" will just insert itself.
Also, symbols like " are inserted in matching
pairs, with the cursor in between.
"K" runs ruby on the current buffer, and
the "F1" function key puts a line
!/usr/math/bin/ruby
on the first line. (You will have to edit
this part).