Skip to content

Instantly share code, notes, and snippets.

@rhysd
Created February 7, 2014 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhysd/8856984 to your computer and use it in GitHub Desktop.
Save rhysd/8856984 to your computer and use it in GitHub Desktop.
let s:tmp = {}
function! s:tmp.completion(arglead, cmdline, cursorpos)
['foo', 'bar', 'baz']
endfunction
" ココ!
command! -complete=customlist,s:tmp.completion Hoge echo <args>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment