On 27/11/08 02:41, HyoungJu Lee wrote:
> Thanks to Ben Schmidt and Gray Johnson.
> My problem is solved.
> In vim input mode, <C-V><C-J> displayed "^M", so I mapped as "nmap <C-M>
> <C-W>j"
> It's works well.
> Thanks again...

<C-M> is (to Vim) synonymous with <Enter>. If you hit the <Enter> key in 
Normal mode, your nmap will be triggered. Similarly, if you happen to 
imap <C-M> to something, it will be triggered by hitting <Enter> in 
Insert mode, which you probably would want to know before writing any 
such mapping.


Best regards,
Tony.
-- 
        When danger reared its ugly head,
        He bravely turned his tail and fled
        Yes, Brave Sir Robin turned about
        And gallantly he chickened out
        Bravely taking to his feet
        He beat a very brave retreat
        Bravest of the brave Sir Robin
        Petrified of being dead
        Soiled his pants then brave Sir Robin
        Turned away and fled.
                  "Monty Python and the Holy Grail" PYTHON (MONTY) 
PICTURES LTD

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to