Skip to content

Instantly share code, notes, and snippets.

@sonesuke
Created August 13, 2012 02:52
Show Gist options
  • Save sonesuke/3336519 to your computer and use it in GitHub Desktop.
Save sonesuke/3336519 to your computer and use it in GitHub Desktop.
vim_input
def vim_input(message = 'input', secret = False):
vim.command('call inputsave()')
vim.command("let s:user_input = %s('%s :')" % (("inputsecret" if secret else "input"), message))
vim.command('call inputrestore()')
return vim.eval('s:user_input')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment