Ⅰ. 插件描述
Run Oracle SQL*Plus commands from vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/sqlvim-sh'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/sqlvim-sh'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/sqlvim-sh'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/sqlvim.sh
Ⅳ. 文档说明
This shell script runs Oracle SQL*Plus commands/sql statements in a register from within vim and inserts the results at the location marking the end of the register.
The simplest way to use the script is to install it per the instructions in install details, type your SQL code in the vim editor. For example,
Mark the line starting with column as ... ma
Go to line starting with select, then ... sx
column tc format a10
set linesize 120
select 'hello' tc from dual;
TC
hello
1 row selected.
Anything that you can do on the SQL*Plus command line, you can do from within vim using this script. I have tested it on cygwin and hp/ux.