Created
June 29, 2016 05:59
-
-
Save sgur/df09b04c556c5dacef2e26fd3510eeb9 to your computer and use it in GitHub Desktop.
An example for Vim w/ CLPUM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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