Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ITKEY_
Vim Sql Workbench
提交
a05e3c30
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,发现更多精彩内容 >>
提交
a05e3c30
编写于
8月 06, 2017
作者:
C
Cosmin Popescu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
version 7.1.1
上级
bf089b0d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
14 addition
and
12 deletion
+14
-12
README.md
README.md
+3
-3
autoload/sw/autocomplete.vim
autoload/sw/autocomplete.vim
+1
-1
autoload/sw/profiles.vim
autoload/sw/profiles.vim
+4
-1
autoload/sw/report.vim
autoload/sw/report.vim
+1
-1
doc/vim-sql-workbench.txt
doc/vim-sql-workbench.txt
+3
-4
plugin/sw.vim
plugin/sw.vim
+2
-2
未找到文件。
README.md
浏览文件 @
a05e3c30
...
@@ -11,7 +11,7 @@ it, here is the quick start:
...
@@ -11,7 +11,7 @@ it, here is the quick start:
*Running sql queries against a DBMS*
:
*Running sql queries against a DBMS*
:
*
set the
`g:sw_config_dir`
and
`g:sw_ex
e`
variables
*
set the
`g:sw_config_dir`
,
`g:sw_exe`
and
`g:sw_cach
e`
variables
*
open your sql buffer
*
open your sql buffer
*
if you have
`CtrlP`
installed you can do
`CtrlP`
and then select
`SQL
*
if you have
`CtrlP`
installed you can do
`CtrlP`
and then select
`SQL
Workbench profiles`
and choose your profile
Workbench profiles`
and choose your profile
...
@@ -1127,8 +1127,8 @@ and
...
@@ -1127,8 +1127,8 @@ and
which means open with vim
`edit`
command
which means open with vim
`edit`
command
*
`g:sw_tab_switches_between_bottom_panels`
: if set to true, then clicking tab
*
`g:sw_tab_switches_between_bottom_panels`
: if set to true, then clicking tab
in a db explorer will switch between the bottom panels
in a db explorer will switch between the bottom panels
*
`g:sw_
autocomplete_cache_dir`
: the location where the autocomplete
*
`g:sw_
cache`
: the location where the cached data is going to be saved
information is saved. You'll need to set it on Windows to work.
(autocomplete data, profiles data etc.)
*
`g:sw_switch_to_results_tab`
: If true, then switch to the results buffer
*
`g:sw_switch_to_results_tab`
: If true, then switch to the results buffer
after executting a query
after executting a query
*
`g:sw_highlight_resultsets`
: If true, highlight the resultsets headers
*
`g:sw_highlight_resultsets`
: If true, highlight the resultsets headers
...
...
autoload/sw/autocomplete.vim
浏览文件 @
a05e3c30
...
@@ -695,7 +695,7 @@ endfunction
...
@@ -695,7 +695,7 @@ endfunction
function
!
sw
#autocomplete#complete_cache_name
(
ArgLead
,
CmdLine
,
CursorPos
)
function
!
sw
#autocomplete#complete_cache_name
(
ArgLead
,
CmdLine
,
CursorPos
)
let
words
=
split
(
'^'
.
a:CmdLine
,
'\v\s+'
)
let
words
=
split
(
'^'
.
a:CmdLine
,
'\v\s+'
)
let
files
=
split
(
globpath
(
g:sw_
autocomplete_cache_dir
,
'*'
),
"\n"
)
let
files
=
split
(
globpath
(
g:sw_
cache
,
'*'
),
"\n"
)
let
result
=
[]
let
result
=
[]
for
file
in
files
for
file
in
files
let
f
=
substitute
(
file
,
'\v\c^.*\/([^\/\.]+)\.?.*$'
,
'\1'
,
'g'
)
let
f
=
substitute
(
file
,
'\v\c^.*\/([^\/\.]+)\.?.*$'
,
'\1'
,
'g'
)
...
...
autoload/sw/profiles.vim
浏览文件 @
a05e3c30
function
!
s:get_name
()
function
!
s:get_name
()
return
g:sw_
autocomplete_cache_dir
.
'/'
.
'profiles.vim'
return
g:sw_
cache
.
'/'
.
'profiles.vim'
endfunction
endfunction
function
!
sw
#profiles#
update
(
channel
)
function
!
sw
#profiles#
update
(
channel
)
...
@@ -25,6 +25,9 @@ function! sw#profiles#about(profile, txt)
...
@@ -25,6 +25,9 @@ function! sw#profiles#about(profile, txt)
endfunction
endfunction
function
!
sw
#profiles#
finish
(
profile
,
txt
)
function
!
sw
#profiles#
finish
(
profile
,
txt
)
if
!(
a:txt
=~
'XSLT transformation.*finished successfully'
)
call
sw
#display_error
(
"There was a problem fetching the profiles for Sql Workbench (maybe the g:sw_cache) variable is not set?"
)
endif
endfunction
endfunction
function
!
sw
#profiles#
get
()
function
!
sw
#profiles#
get
()
...
...
autoload/sw/report.vim
浏览文件 @
a05e3c30
...
@@ -15,7 +15,7 @@ function! sw#report#get(profile)
...
@@ -15,7 +15,7 @@ function! sw#report#get(profile)
endfunction
endfunction
function
!
s:get_name
(
profile
)
function
!
s:get_name
(
profile
)
return
g:sw_
autocomplete_cache_dir
.
'/'
.
substitute
(
a:profile
,
'\v\', '
-
', '
g
'
)
return
g:sw_
cache
.
'/'
.
substitute
(
a:profile
,
'\v\', '
-
', '
g
'
)
endfunction
endfunction
function
!
s:get_report
(
profile
)
function
!
s:get_report
(
profile
)
...
...
doc/vim-sql-workbench.txt
浏览文件 @
a05e3c30
...
@@ -30,7 +30,7 @@ it, here is the quick start:
...
@@ -30,7 +30,7 @@ it, here is the quick start:
Running sql queries against a DBMS:
Running sql queries against a DBMS:
* set the `g:sw_config_dir`
and `g:sw_ex
e` variables
* set the `g:sw_config_dir`
, `g:sw_exe` and `g:sw_cach
e` variables
* open your sql buffer
* open your sql buffer
* if you have `CtrlP` installed you can do `CtrlP` and then select and choose your profile
* if you have `CtrlP` installed you can do `CtrlP` and then select and choose your profile
* otherwise, you can do `:SWSqlBufferConnect` and then in the buffer execute
* otherwise, you can do `:SWSqlBufferConnect` and then in the buffer execute
...
@@ -1179,8 +1179,8 @@ SQL BUFFER SETTINGS: *vim-sql-workbench-sql_buffer_settings
...
@@ -1179,8 +1179,8 @@ SQL BUFFER SETTINGS: *vim-sql-workbench-sql_buffer_settings
which means open with vim `edit` command
which means open with vim `edit` command
* `g:sw_tab_switches_between_bottom_panels`: if set to true, then clicking tab
* `g:sw_tab_switches_between_bottom_panels`: if set to true, then clicking tab
in a db explorer will switch between the bottom panels
in a db explorer will switch between the bottom panels
* `g:sw_
autocomplete_cache_dir`: the location where the autocomplete
* `g:sw_
cache`: the location where the cached data is going to be saved
information is saved. You'll need to set it on Windows to work.
(autocomplete data, profiles data etc.)
* `g:sw_switch_to_results_tab`: If true, then switch to the results buffer
* `g:sw_switch_to_results_tab`: If true, then switch to the results buffer
after executting a query
after executting a query
* `g:sw_highlight_resultsets`: If true, highlight the resultsets headers
* `g:sw_highlight_resultsets`: If true, highlight the resultsets headers
...
@@ -1213,4 +1213,3 @@ GENERAL SETTINGS: *vim-sql-workbench-general_settings
...
@@ -1213,4 +1213,3 @@ GENERAL SETTINGS: *vim-sql-workbench-general_settings
use `SWSqlWipeoutResultsSets` command.
use `SWSqlWipeoutResultsSets` command.
* `g:sw_config_dir`: the config dir of the (works only with
* `g:sw_config_dir`: the config dir of the (works only with
build 121.4 and more)
build 121.4 and more)
plugin/sw.vim
浏览文件 @
a05e3c30
...
@@ -65,8 +65,8 @@ if !exists('g:sw_search_default_compare_types')
...
@@ -65,8 +65,8 @@ if !exists('g:sw_search_default_compare_types')
let
g:sw_search_default_compare_types
=
'contains'
let
g:sw_search_default_compare_types
=
'contains'
endif
endif
if
!
exists
(
'g:
sw_autocomplete_cache_dir
'
)
if
!
exists
(
'g:
cache
'
)
let
g:sw_
autocomplete_cache_dir
=
$HOME
.
'/.cache/sw'
let
g:sw_
cache
=
$HOME
.
'/.cache/sw'
endif
endif
if
(!
exists
(
'g:sw_delimiter'
))
if
(!
exists
(
'g:sw_delimiter'
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录