Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ITKEY_
Vim Sql Workbench
提交
121d6eda
V
Vim Sql Workbench
项目概览
ITKEY_
/
Vim Sql Workbench
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
Vim Sql Workbench
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
121d6eda
编写于
4月 01, 2015
作者:
C
Cosmin Popescu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
small doc fix
上级
736ef338
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
52 deletion
+4
-52
README.md
README.md
+4
-52
未找到文件。
README.md
浏览文件 @
121d6eda
...
...
@@ -29,12 +29,10 @@ CONTENTS:
5.
Searching
6.
Exporting
7.
Sessions
8.
Asynchronous
9.
Variables
10.
Commands
11.
Settings
12.
Transactions
13.
Screen shots
8.
Variables
9.
Commands
10.
Settings
11.
Screen shots
Requirements
========================================
...
...
@@ -573,52 +571,6 @@ that executing statements against the DBMS will produce vim errors. Before
executing any statement, you have to call the
`SWSqlBufferRestore`
. This will
also restore the autocomplete list, so you will also have the autocomplete.
Asynchronous
========================================
By default, VIM SQL workbench works in synchronous mode. This means that you
launch a command, then you will see on the screen the command being executed
and you have to wait for it to finish to execute another one.
If you set the variable
`g:sw_asynchronious`
to 1, then VIM SQL Workbench will
switch to work in asynchronous mode. This means that once you launch a
command, the control is returned back immediately, and when the command is
finished, you will see the output. The advantages of this approach are
evident: you can launch more than one command at the same time from different
SQL buffers, you can continue working if the command takes too much time etc.
For example, when you want to activate the intellisense. This can take more
than one minute. You can continue working in all this time.
In order to use the asynchronous mode on Windows, you have to have the
[
VIM
Dispatch
](
https://github.com/tpope/vim-dispatch
)
plugin installed. This is
because in Windows I cannot launch a command as daemon.
Another requirement to run VIM in asynchronous mode is to have the server
option installed and activated (see
`:help client-server`
). This is the way in
which VIM SQL Workbench will know that a command is finished.
If VIM is not in your
`PATH`
variable, or you are using other executable (like
`gvim`
or
`vim.exe`
or
`gvim.exe`
on Windows), you have to set the
`g:sw_vim_exe`
variable in order to use the asynchronous mode. The default
value is
`vim`
. This should work on most
`GNU/Linux`
distributions if you are
using vim in console mode. If you are using
`gvim`
or
`macvim`
, just set the
the variable to whatever you are using. On Windows, you will probably have to
set the variable with full path.
If the command takes to much and you want to launch another command from the
same buffer, by default you will have an error message telling you that
another command is in progress. You can use the
`SWKillCurrentCommand`
command. This is mapped by default to
<
C-c
>
. You can change the mapping
or you can use it directly in command mode.
Please note that killing a command does not mean that the command will not be
sent to the DBMS. This only means that once it's finished, vim will simply
ignore its output. This is not a way to stop a wrongly sent
`update`
statement. The statement will get execute anyway.
If any of the requirements is not met, you will not receive any error message.
The plugin will silently switch to synchronous mode and work without issues.
Variables
========================================
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录