Friday, July 13, 2012

Re: doesn't work in inoremap

On Fri, Jul 13, 2012 at 5:51 PM, sinbad <sinbad.sinbad@gmail.com> wrote:
 
actually by removing the <ESC> in the mapping
it worked as expected, not sure why.


Because in normal mode, <END> puts the cursor *on* the last character of the line; and "i" would begin inserting *before* the last character. This is what happened when you had <ESC> before <END> in your mapping.

On the other hand, in insert mode, <END> puts the cursor *after* the last character of the line; and "i" would begin inserting *after* the last character. This is what happened when you removed the <ESC> before <END>.

- G

--
You received this message from the "vim_use" 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

No comments: