Skip to content

Instantly share code, notes, and snippets.

@kmorey
Created February 21, 2013 01:59
Show Gist options
  • Save kmorey/5001329 to your computer and use it in GitHub Desktop.
Save kmorey/5001329 to your computer and use it in GitHub Desktop.
:command! -complete=customlist,ListTypes -nargs=1 LP !playbook/playbook.sh <args>
:fun! ListTypes(A,L,P)
python << endpython
import vim
arg = vim.eval("a:A")
result = [x for x in ["debug", "release"] if x.startswith(arg)]
vim.command("return " + str(result))
endpython
:endfun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment