Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ITKEY_
Vim Sql Workbench
提交
b9dacf31
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,发现更多精彩内容 >>
提交
b9dacf31
编写于
2月 28, 2015
作者:
C
Cosmin Popescu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updated vim help documentation
上级
56a726dd
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
62 addition
and
4 deletion
+62
-4
README.md
README.md
+3
-0
doc/sw.txt
doc/sw.txt
+59
-4
未找到文件。
README.md
浏览文件 @
b9dacf31
...
...
@@ -980,6 +980,9 @@ and
you set this to 1, then the commands will be executed asynchronous
*
`g:sw_vim_exe`
: the default VIM executable location; this is used in
conjunction with the asynchronous mode; default value:
`vim`
*
`g:sw_delete_tmp`
: if true, then delete the temporary files created to
execute any command. Useful for debugging. You can set it to 0 and check all
the generated files
Screen shots
========================================
...
...
doc/sw.txt
浏览文件 @
b9dacf31
...
...
@@ -30,9 +30,10 @@ CONTENTS
5. Searching ................................................ |sw-search|
6. Exporting ................................................ |sw-export|
7. Sessions ............................................... |sw-sessions|
8. Commands ............................................... |sw-commands|
9. Settings ............................................... |sw-settings|
10. Missing features .............................. |sw-missing-features|
8. Asynchronous ....................................... |sw-asynchronous|
9. Commands ............................................... |sw-commands|
10. Settings .............................................. |sw-settings|
11. Missing features .............................. |sw-missing-features|
==============================================================================
REQUIREMENTS *sw-requirements*
...
...
@@ -501,6 +502,49 @@ 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 *sw-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] 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.
==============================================================================
COMMANDS *sw-commands*
...
...
@@ -811,7 +855,11 @@ buffer using the default list of tables, fields and procedures.
This command will restore the properties of the sql buffer following a vim
session restore. This includes the autocomplete intellisense of the buffer, if
this was active when mksession was executed.
this was active when `mksession` was executed.
*SWKillCurrentCommand*
This command will kill the current command being executed in asynchronous mode.
==============================================================================
SETTINGS *sw-settings*
...
...
@@ -878,6 +926,13 @@ the bottom left and bottom right panels)
*sw_exe*: the location of the SQL Workbench executable; default value:
"sqlwbconsole.sh"
*g:sw_tmp*: the location of your temporary folder; default value: "/tmp"
*g:sw_asynchronious*: by default, the commands are executed synchronous; if
you set this to 1, then the commands will be executed asynchronous
*g:sw_vim_exe*: the default VIM executable location; this is used in
conjunction with the asynchronous mode; default value: `vim`
**g:sw_delete_tmp*: if true, then delete the temporary files created to
execute any command. Useful for debugging. You can set it to 0 and check all
the generated files
==============================================================================
MISSING FEATURES *sw-missing-features*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录