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.
This is normal. When Vim gets an <Esc> it doesn't know if you pressed the <Esc> key or that some special key sequence is coming. Perhaps you can make your key send CSI instead of Esc to avoid the confusion. Oh, there is one change I can make that will help: *** ../../vim-7.0.224/src/getchar.c Sun Mar 4 21:25:44 2007 --- getchar.c Thu Apr 19 22:13:37 2007 *************** *** 2183,2189 **** } /* Need more chars for partly match. */ if (mlen == typebuf.tb_len) ! keylen = KL_PART_MAP; else if (max_mlen < mlen) /* no match, may have to check for termcode at * next character */ --- 2187,2193 ---- } /* Need more chars for partly match. */ if (mlen == typebuf.tb_len) ! keylen = KL_PART_KEY; else if (max_mlen < mlen) /* no match, may have to check for termcode at * next character */ -- "You're fired." (1980) "You're laid off." (1985) "You're downsized." (1990) "You're rightsized." (1992) (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///