Created
June 26, 2019 08:02
-
-
Save pocke/f4b9ee69c3714601cd1a23039bd0aa03 to your computer and use it in GitHub Desktop.
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
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