Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to restrict the speed of input in vim itself (not os)?

To sort of simulate editing session over slow network connection.

share|improve this question

migrated from Nov 2 '12 at 0:51

This question came from our site for professional and enthusiast programmers.

Maybe bind every key in insert mode to switch to edit mode, then back to insert mode and insert the character :) – Michael Nov 1 '12 at 23:32
up vote 5 down vote accepted

You could do something like this:

:autocmd CursorMoved,CursorMovedI * :sleep 200m

Which causes Vim to pause for 200 milliseconds every time the cursor moves in normal or insert mode. This won't work for the :-command line or in a few other contexts.


:help :autocomd
:help CursorMoved
:help :sleep
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .