Skip to content

Instantly share code, notes, and snippets.

@haya14busa
Created November 17, 2016 22:33
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 haya14busa/1b3c9c058e0731c1acb654c5a891298b to your computer and use it in GitHub Desktop.
Save haya14busa/1b3c9c058e0731c1acb654c5a891298b to your computer and use it in GitHub Desktop.
test
inoremap <Plug>(loooooooooooooooooooooooooooooooooong) <C-r>=DoComplete()<CR>
function! DoComplete() abort
call complete(col('.'), ['a', 'b', 'c'])
return ''
endfunction
imap <C-y> <Plug>(loooooooooooooooooooooooooooooooooong)
map <Plug>(testlooooooooooooooong) <Nop>
imap <Plug>(testlooooooooooooooong) <Plug>(loooooooooooooooooooooooooooooooooong)
function! Test() abort
let g:t = timer_start(500, {->feedkeys("\<Plug>(testlooooooooooooooong)", 'm')}, {'repeat': -1})
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment