Summary
attachしたdbの補完を出す設定方法
こんな感じ
設定
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