Am 07.05.2010 12:59, schrieb Bram Moolenaar:
Tyru wrote:
1. :source below code
2. Enter insert mode
3. Press<C-^>
4. Type "bar"
5. Vim outputs "noremap!", not "lnoremap"
--- code ---
" :lmap can't remap?
"
" Typing "bar" outputs "noremap!", not "lnoremap".
lnoremap foo<Esc>:<C-u>echomsg 'lnoremap'<CR>
noremap! foo<Esc>:<C-u>echomsg 'noremap!'<CR>
lmap bar foo
--- code ---
I first thought that it's the order that matters, but when putting the
lmap last it still doesn't work. I suppose that's a bug.
A bug??
I always thought this was intended behaviour (given I understand the issue).
Does it make any sense to remap language-mapped keys to other language-
mapped keys? IMHO not.
But 'lmaps' to 'imapped' keys are very useful.
for example, the autoclose plugin (or any similar plugin) maps '(' in
Insert mode.
Now with a german key map (which contains
:lmap * (
), I want '*' to be remapped to the '(' defined by the plugin.
Currently, extra work is needed, because the :loadkeymap command uses
:lnoremap (instead of :lmap), but that's a minor issue.
--
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