Ⅰ. 插件描述
SQL*Plus without SQL*PlusⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/oravim-txt'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/oravim-txt'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/oravim-txt'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/oravim.txt
Ⅳ. 文档说明
This script allows you to have a SQLWorksheet-type interface to Oracle. Similar to Jeremy Collins' script (vimtip #33), and actually the idea was based on his. It, too, requires that TCL is built in to Vim, and also has a few other requirements: links and a version of SQL*Plus that supports HTML output.
The usage is quite a bit different, though.
Start by simply editing a file in vim, and move your cursor to a SQL statement. You can visually select it or not, it doesn't matter as long as there is a blank line before and after. Then, based on these keybindings, hit <C-k> and your statement will be executed, formatted, and popped up in a split window below. To run another statement, move to another one and hit <C-k> again. It will replace the bottom window with the new results.
More detail (and latest versions) at http://oravim.dashf.com/