On 13 May 2010 11:18, Milan Vancura <mi...@ucw.cz> wrote: > BTW, slightly different topic: how can one remap some internal function from > its default hotkey to the different one? As far as I know there is nothing > like > "leave insert mode" function which can be mapped to the different key in case > Esc is already mapped to something else. Am I wrong? > > Typical example: > > " make 'Q' working as original 'D', that part works: > :map Q D > > " now remap 'D' to something else as we have 'Q' for original 'D' action > already > :map D $ > > now both 'Q' and 'D' work as '$' instead of having 'Q' working like original > 'D' and 'D' working like original '$'. > > Milan
I'm not sure I get your point, but it seems that the problem you are describing is solved by using nnoremap, vnoremap, onoremap instead of map. -- Regards, Lech Lorens -- 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