Skip to content

Instantly share code, notes, and snippets.

@4513ECHO
Created February 17, 2023 14:20
Show Gist options
  • Save 4513ECHO/fa875de95d7e59180c16575e99c21205 to your computer and use it in GitHub Desktop.
Save 4513ECHO/fa875de95d7e59180c16575e99c21205 to your computer and use it in GitHub Desktop.
set rtp^=~/.cache/nvim/dein/repos/github.com/Shougo/pum.vim
let g:lines = []
autocmd CmdlineChanged * call add(g:lines, getcmdline())
call feedkeys(':')
call timer_start(100, { -> pum#open(getcmdpos(), [#{ word: 'foo' }]) })
call timer_start(200, { -> pum#map#select_relative(+1) })
call timer_start(300, { -> pum#map#confirm() })
" call timer_start(400, { -> feedkeys("\<C-u>\<CR>") })
call timer_start(500, { -> execute('echomsg g:lines', '') })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment