Thursday, May 14, 2015

Re: Leftover characters on screen when typing during long-running commands

Hi Ohad!

On Mi, 13 Mai 2015, Ohad Lutzky wrote:

> This has been driving me crazy for a while, so I found a way to reproduce it with no plugins whatsoever:
>
> :map <silent> ;l :let tmp=system('sleep 1')<CR>
>
> Now edit anywhere in your document, type ; and follow with l long-pressed. Your screen is now littered with 'l's until you hit C-l. Naturally this is a toy example - a more practical case is when you use the git-gutter plugin and trying to do something while it's processing, or any other similar plugin that runs external programs.
>
> Other than hitting C-l once in a while, or liberally sprinkling :redraw! commands in plugins, is there anything to do about this?

Don't know, if there is anything you can do about. Does that work:
:map <silent> ;l :silent let tmp=system('sleep 1')<CR>


Best,
Christian
--
Formel für Karriere: Die rechte Phrase am rechten Platz.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment