I launch vi. Then I type :map <Esc> (i.e. I type : m a p and then
press the <Esc> key). I return from command mode to normal mode as
soon as I press <Esc>.

Now I map the 'jj' to <Esc> with the following command: map! jj <Esc>

Now, I type :map jj (i.e. I type : m a p and then press j two times
quickly). I get this output at the bottom. Why such a difference in
behavior when I invoke the <Esc> functionality using jj?

  ~
  ~
  ~
  ~
  ~
  ~
  ~
  ~
  ~
  ~
  ~
  ~
  ~
   \rwp          <Plug>RestoreWinPosn
   \swp          <Plug>SaveWinPosn
   \ds           <Plug>StopDrawIt
   \di           <Plug>StartDrawIt
n  gx            <Plug>NetrwBrowseX
n  <Plug>NetrwBrowseX * :call netrw#NetrwBrowseX(expand("<cWORD>"),0)<CR>
n  <Plug>RestoreWinPosn   :call RestoreWinPosn()<CR>
n  <Plug>SaveWinPosn   :call SaveWinPosn()<CR>
   <Plug>StopDrawIt   :set lz<CR>:call DrawIt#StopDrawIt()<CR>:set nolz<CR>
   <Plug>StartDrawIt   :set lz<CR>:call DrawIt#StartDrawIt()<CR>:set nolz<CR>
Press ENTER or type command to continue

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

Reply via email to