This is driving me batty. Using Vim 7.2.182 on Gentoo. In insert mode, my comma key does nothing. There's nothing in .vimrc that includes the comma key. :map shows no mapping that includes a comma. It's not a keyboard or similar issue: the comma key works fine in all other applications and in Vim in command mode, etc. But when I go into Insert mode, pressing the key does nothing at all. I've even tried explicitly mapping the comma key to a comma but that appears to have no effect. Google searches have proved fruitless. Any clues?
+2
A:
Solved. Somehow or another, I had:
set cinkeys=0{,0},:,!,0#,!^F
in my .vimrc. Removing the !, fixed the issue.
You probably copied the .vimrc from here at some point: http://blogs.gnome.org/johannes/2006/11/10/getting-cool-auto-indent-in-vim/
Kai
2009-07-22 19:17:12
I think this is linked to from a "best vim tricks" topic... this is also an excellent of the rogue tile anti-pattern.
trenton
2010-01-12 23:19:23
+1
A:
One helpful pointer for similar problems:
Starting vim like this
vim -u NONE
disables the reading of the .vimrc, environment variables and plugins. See :help -u
This way you can make sure that no configuration of your own is the problem.
Afterwards try with an empty .vimrc file. If the problem persists, it should be in a plugin. If not, it's in your .vimrc. So try a "binary search" in the .vimrc file by commenting out the first half of it. If the problem appears, it's in the first half of your .vimrc, otherwise in the second half. Continue with commenting out half of the "harmful" half and so on ...
Blixtor
2009-07-23 07:04:58