Friday, June 22, 2012

Re: Mapping doesn't work when cursor is set in the first column

On 06/22/12 03:21, Mikey wrote:
> I use GVim 7.3.566.
> Mapping doesn't work when cursor is set in the first column and
> mapping begins with 'h'.
> Steps to reproduce:
>
> gvim -u NONE -U NONE
> :set nocompatible
> :nn <leader>a hV
> :h
> 0
> <leader>a
>
> Line with cursor should be highligted but it is not.

From ":help map_return"

Note that when an error is encountered (that causes
an error message or beep) the rest of the mapping
is not executed. This is Vi-compatible.

The "h" (and like your motion in the actual mapping) likely triggers
a message/beep.

-tim

--
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:

Post a Comment