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
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui