Skip to content

Instantly share code, notes, and snippets.

@pocke
Created June 26, 2019 08:02
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 pocke/f4b9ee69c3714601cd1a23039bd0aa03 to your computer and use it in GitHub Desktop.
Save pocke/f4b9ee69c3714601cd1a23039bd0aa03 to your computer and use it in GitHub Desktop.
let s:display_typed_char_zindex = 1
function! s:display_typed_char() abort
let ch = systemlist('banner ' . v:char)
let winid = popup_create(ch, {"zindex": s:display_typed_char_zindex})
let s:display_typed_char_zindex += 1
call job_start("sleep 0.5", {"exit_cb": { -> popup_close(winid) }})
endfunction
autocmd InsertCharPre * call s:display_typed_char()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment