On May 25, 1:19 pm, Tony Mechelynck <[email protected]> wrote: > On 25/05/10 18:03, Bee wrote: > > inoremap<esc> bug? > > >http://vim.wikia.com/wiki/Avoid_the_escape_key > > > I tried the "Improving the Esc key" on that page. > > > inoremap<Esc> <Esc>`^ > > > In Mac terminal and Linux urxvt it has side effects for the arrow > > keys. The arrow keys up, down, right, left produce A, B, C, D > > respectively. > > > Hmmm, vim keycodes found using ^V: > > up ^[OA > > down ^[OB > > right ^[OC > > left ^[OD > > > Since ^[ is the same as<esc> > > Is the ^[ doing<esc>`^ as though it were typed? > > > It seems up arrow is now doing: > > ^[ Exit insert mode > > `^ To position where the cursor was the last time when Insert mode > > was stopped > > O Begin a new line above the cursor and insert text > > A Type the letter "A" > > > Is this a bug? Seems inoremap is not working here. > > I recommend > > :set timeout timeoutlen=5000 ttimeoutlen=100 > > (or similar), where > > - both times are in milliseconds > > - 'timeoutlen' should be longer than the longest time between keystrokes > when you're hesitating about which key to type next in a multikey {lhs} > for a mapping > > - 'ttimeoutlen' should be shorter than the shortest time between > keystrokes at your fastest typing speed but longer than the (longest) > time between successive bytes sent to you by the keyboard for a single key. > > When bytes arrive with a shorter interval between them than > 'ttimeoutlen' milliseconds, Vim will then accept them as a multibyte > keycode (if found in the current termcap) in preference to a mapping. > > See the corresponding help topics for details.
Hi Tony I tried what you suggested and it had no effect, tried other values, still get the A, B, C, D. Also tried with: vim -N -i NONE -u NONE Still getting: The arrow keys up, down, right, left produce A, B, C, D respectively. -- You received this message from the "vim_dev" 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
