Ⅰ. 插件描述
Evaluate the statements which you select with visual mode.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/selection-eval-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/selection-eval-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/selection-eval-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/selection_eval.vim
Ⅳ. 文档说明
Evaluate the statements which you select with visual mode.
Commands:
vmap <c-e><c-r> evaluate with using ruby.
vmap <c-e><c-l> evaluate with using perl.
vmap <c-e><c-p> evaluate with using python.
vmap <c-e><c-s> evaluate with using shell(bash)
vmap <c-e><c-v> evaluate with using vim.
you need to install the interpreter which you want to use.
Usage:
- press <ctrl> + v
- select the snippets with visual mode. cf) echo "hello world"
- press <c-e><c-v> or :EV (evaluate by vim.)
- you get the result in the another buffer.
- when you press the <e-c>c or :ECL, the result buffer is closed.
Reference: dbext.vim
I use this scripts on FreeBSD5.4 and cygwin. (vim6.3)