Jeffery Small wrote:
I'm using vim 7.0 on a Solaris 9 system.
If I put the following line in my .vimrc file:
set pastetoggle=<Esc>[192z
Then when I am editing in insert mode, each time I hit ESC to return
to command mode the cursor sit there jumping to the right and back
continuously until another key is pressed. If I press ESC again it stops
or if I move the cursor it also stops. If I comment out the above line
then I do not see this problem.
Any suggestions as to how to address this? Thanks.
Regards,
Try setting 'pastetoggle' to a single key (using <> notation for special
keys), e.g.,
:set pastetoggle=<F11>
You might also possibly want to set 'ttimeout' on, and 'ttimeoutlen' to
something short enough (when positive, it's a number of milliseconds: set it
to more than the time between successive bytes auto-generated for a single
special key by the keyboard driver, and to less than the time between manual
keypresses when you are typing).
With what you've set, I suspect that when you hit Esc in 'paste' mode Vim
waits to see if you hit [ next.
Best regards,
Tony.
--
"Benson, you are so free of the ravages of intelligence"
-- Time Bandits