Re: Pressing CTRL-G in visual mode causes vim to use 100% of the CPU.
On Jan 26, 1:15 am, Dominique Pelle [EMAIL PROTECTED] wrote: (...) map c-g 2c-g (...) Creating such a recursive mapping should perhaps give an error, rather than causing infinite loops when triggering the mapping. -- Dominique What is more alarming then 100% cputime ? ;-) -ap --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Pressing CTRL-G in visual mode causes vim to use 100% of the CPU.
Creating such a recursive mapping should perhaps give an error, rather than causing infinite loops when triggering the mapping. The infinite loop is actually a feature, and documented. :help recursive_mapping Ben. Send instant messages to your online friends http://au.messenger.yahoo.com --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Pressing CTRL-G in visual mode causes vim to use 100% of the CPU.
On Jan 26, 2008 12:21 AM, Ben Schmidt [EMAIL PROTECTED] wrote: I've noticed that pressing CTRL-G while in visual mode, causes vim to take 100% of the CPU. I can interrupt it with CTRL-C. Anybody else observing that? Not me. 7.1.203 Ben. Ah, sorry, false alert. Investigating further, I found the root cause, I had a silly recursive mapping in my ~/.vimrc: map c-g 2c-g I can't remember why I had such a senseless mapping. I suspect it was meant to be: map c-g gc-g I never use ctrl-g and did not notice the problem until today. I've removed the offending mapping from my ~/.vimrc and everything is now OK. Creating such a recursive mapping should perhaps give an error, rather than causing infinite loops when triggering the mapping. -- Dominique --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Pressing CTRL-G in visual mode causes vim to use 100% of the CPU.
I've noticed that pressing CTRL-G while in visual mode, causes vim to take 100% of the CPU. I can interrupt it with CTRL-C. Anybody else observing that? Not me. 7.1.203 Ben. Send instant messages to your online friends http://au.messenger.yahoo.com --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---