Bug: langmap + mappings

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug: langmap + mappings

Tim Diels
Hi

I found what I believe to be a bug, so I thought I'd check here first to
see if a fix exists.

Here is how to reproduce the bug:
set langmap=dj;hd
noremap dd jdd

Expected behaviour upon pressing jj in normal mode:
move down one line and then delete that line

What I get instead:
delete the character to the left, then move left one char.
So basically it did dhh, i.e. it applied the langmap again to the result
of the noremap rather than just to actual user input.

Here's my bugreport.txt: http://limyreth.sin.khk.be/files/vim/bugreport.txt

Thanks in advance

Greetings

limyreth

--
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
Reply | Threaded
Open this post in threaded view
|

Re: Bug: langmap + mappings

Andy Wokula
Am 18.06.2010 19:57, schrieb limyreth:

> Hi
>
> I found what I believe to be a bug, so I thought I'd check here first to
> see if a fix exists.
>
> Here is how to reproduce the bug:
> set langmap=dj;hd
> noremap dd jdd
>
> Expected behaviour upon pressing jj in normal mode:
> move down one line and then delete that line
>
> What I get instead:
> delete the character to the left, then move left one char.
> So basically it did dhh, i.e. it applied the langmap again to the result
> of the noremap rather than just to actual user input.
>
> Here's my bugreport.txt: http://limyreth.sin.khk.be/files/vim/bugreport.txt
>
> Thanks in advance
>
> Greetings
>
> limyreth

:h todo

Problem with 'langmap' being used on the rhs of a mapping. (Nikolai Weibull,
2008 May 14)

--
Andy

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