Quantcast
Channel: Vimタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 5608

vim-dbext.vimでattachしたdbの補完をだす

$
0
0

Summary

attachしたdbの補完を出す設定方法

 こんな感じ

Screen Shot 2019-10-16 at 7.11.52.png
Screen Shot 2019-10-16 at 7.12.07.png

設定

vimrcに書く

"  ------------------------------------------------------"                      main database"  ------------------------------------------------------lets:dbname= $HOME .'/Desktop/test_sqlite3/baz.sqlite'letg:dbext_default_profile_test='type=SQLITE:dbname='.s:dbname"  ------------------------------------------------------"                     attach databases"  ------------------------------------------------------lets:addDb01='"'. $HOME .'/Desktop/test_sqlite/foo.db" as foo'lets:sCmd01='-cmd ''attach '.s:addDb01.''' 'lets:addDb02='"'. $HOME .'/Desktop/test_sqlite2/bar.db" as bar'lets:sCmd02='-cmd ''attach '.s:addDb02.''' 'letg:dbext_default_SQLITE_cmd_options=s:sCmd01.s:sCmd02"  ------------------------------------------------------"                       set profile"  ------------------------------------------------------letg:dbext_default_profile='test'

参考

sqliteのヘルプのcmdのところ

$ sqlite3 --help

dbext.vimのヘルプ

https://github.com/jonathanfilip/vim-dbext/blob/master/doc/dbext.txt#L2121


Viewing all articles
Browse latest Browse all 5608

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>