Skip to content

Instantly share code, notes, and snippets.

@squm
Created December 8, 2016 07:58
Show Gist options
  • Save squm/23a9b3101c0e0036b1620f6bd094481f to your computer and use it in GitHub Desktop.
Save squm/23a9b3101c0e0036b1620f6bd094481f to your computer and use it in GitHub Desktop.
command! -complete=file -nargs=* FindArg call <SID>FindArgFunc(<q-args>)
function! s:FindArgFunc(args)
if a:args == ""
let t:argv = input("argv: ", "", "file")
else
let t:argv = a:args
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment