selection_eval.vim


Ⅰ. 插件描述

Evaluate the statements which you select with visual mode.

Ⅱ. 基本信息

创建日期:  2005-12-12
使用用户:  1
Github星:  1
插件作者:  shunsuke tsutsui

Ⅲ. 安装方法

使用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:

  1. press <ctrl> + v
  2. select the snippets with visual mode.  cf) echo "hello world"
  3. press <c-e><c-v> or :EV (evaluate by vim.)
  4. you get the result in the another buffer.
  5. 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)

添加新评论