On Mon, Mar 16, 2009 at 8:07 AM, John Little <[email protected]> wrote: > > > > On Mar 16, 8:25 am, Foss User wrote: >> I have mapped ;; to <Esc> using :map! ;; <Esc> >> >> If I am in the end of line and press Esc, I escape to normal mode and >> the cursor stays in the last character of the line. >> >> If I am in the end of line and press ;; I escape to normal mode but >> the cursor moves to next line. Why? > > It shoudn't, and doesn't for me. Does it with vim -u NONE? Version, > OS? > > Regards, John
I found the problem. By mistake there was a trailing space after <Esc>. My mapping was like this: 'map! ;; <Esc> ' So, the erroneous trailing space was taking the cursor one character forward into the next line. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
