vim-dadbod icon indicating copy to clipboard operation
vim-dadbod copied to clipboard

:DB hangs in GVim when attempting to open interactive console

Open dexterous opened this issue 6 years ago • 10 comments

Per README, if only connection URL is provided and SQL string / file is omitted, it should spawn an interactive console. However, when executed in GVim, the Vim just locks up.

I have tpope/vim-dispatch installed and running...

Start postgresql://...

... does open psql in interactive mode (albeit) within the Ex bar.

With a little experimentation, I found that taking off the silent at https://github.com/tpope/vim-dadbod/blob/master/autoload/db.vim#L206

silent execute 'Start' escape(cmd, '%#')

... does the trick.

dexterous avatar Nov 06 '19 03:11 dexterous

That's unexpected. Does :silent Start cmd.exe lock up the same way?

tpope avatar Nov 17 '19 06:11 tpope