Skip to content

Instantly share code, notes, and snippets.

@sgur
Created June 29, 2016 05:59
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 sgur/df09b04c556c5dacef2e26fd3510eeb9 to your computer and use it in GitHub Desktop.
Save sgur/df09b04c556c5dacef2e26fd3510eeb9 to your computer and use it in GitHub Desktop.
An example for Vim w/ CLPUM
scriptencoding utf-8
function! EchoComplete(arglead, cmdline, cursorpos) abort "{{{
return ['a', 'b', 'c']
endfunction "}}}
function! EchoTest() abort "{{{
let name = input(':echo ', '', 'customlist,EchoComplete')
redraw
execute "echo" string(name)
endfunction "}}}
set wildmenu wildmode=popup
nnoremap <C-k> :call EchoTest()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment