I use dbext.vim for any database related work so I have several connections configured on my _vimrc and when I need to switch between them I use the DBPromptForBufferParameters that this plugin provides.

As I'm using gVim this shows an popup window because it uses the inputdialog() function, however I want to this function behave like the input() function that does not show a popup.

There is some way to do this or I would have to change the plugin source ? I have looked at the documentation and source of the plugin and there isn`t any option to configure this.

  • 2
    Check the :h guioptions setting, adding c may do what you want (set guioptions+=c). If it works, Enter accepts, Esc cancels, Backspace deletes (if you have a default value and want to change it).
    – VanLaser
    Commented Feb 17, 2016 at 22:03
  • 1
    @VanLaser thanks, it is exactly what I want. I completely forgot to look at guioptions. Care to add as an answer ? Commented Feb 17, 2016 at 22:08

1 Answer 1


Adding c to the guioptions setting will replace simple GUI input popups with their console equivalents:

set guioptions+=c

If inputdialog() is called with a default value, Backspace first if you want to replace it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.