Loading ...
Sorry, an error occurred while loading the content.

Re: Pressing in visual mode causes vim to use 100% of the CPU.

Expand Messages
  • Matt Wozniski
    ... No, it was meant to be noremap 2 2 shows more information than . It s briefly mentioned at ... The output of : .vimrc line 1
    Message 1 of 7 , Jan 25, 2008
    • 0 Attachment
      On Jan 25, 2008 7:15 PM, Dominique Pelle wrote:
      >
      > Ah, sorry, false alert. Investigating further, I found the root cause,
      > I had a silly recursive mapping in my ~/.vimrc:
      >
      > map <c-g> 2<c-g>
      >
      > I can't remember why I had such a senseless mapping. I suspect
      > it was meant to be:
      >
      > map <c-g> g<c-g>
      >
      > I never use <ctrl-g> and did not notice the problem until today.

      No, it was meant to be
      noremap <c-g> 2<c-g>

      2<c-g> shows more information than <c-g>. It's briefly mentioned at
      :help CTRL-g.

      The output of <c-g>:
      ".vimrc" line 1 of 427 --0%-- col 1

      The output of 1<c-g>:
      "~/.vimrc" line 1 of 427 --0%-- col 1

      The output of 2<c-g>:
      buf 1: "~/.vimrc" line 1 of 427 --0%-- col 1

      ~Matt

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.