Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Every time I enter the command mode and type :, the next letter I type always happen to be CAPITALIZED, this is really annoying because the vim does not understand what :Wq is or what :Q is, so I always have to delete what I typed and type again.

May I ask if there's a fix to this?

Edit: I haven't just encounter this problem on 1 computer, also I'm not just started using vim. This problem has been with me for at least a year with so many other computers (because I am a student who work in the computer lab).

At first I saw that it is because I typed too fast. Then I explicitly slow down. e.g. type : , take my hand off the keyboard, wait a second, then type q. Same effect. instead of the lovely q showing up. I got that ugly Q.

share|improve this question

closed as too localized by ChrisF, Renan, HackToHell, 8088, CharlieRB Mar 19 '13 at 19:21

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

2  
Get a better keyboard, and learn to type more precisely. –  Ingo Karkat Mar 18 '13 at 13:17
    
The Shift key in your keyboard seems to have a problem. Try a friend's keyboard and report back. –  jaume Mar 18 '13 at 13:27
    
I haven't just encounter this problem on 1 computer, also I'm not just started using vim. This problem has been with me for at least a year with so many other computers (because I am a student who work in the computer lab). –  ssgao Mar 18 '13 at 13:34
1  
Does this happen if you start Vim without any initialization files? (e.g.: vim -u NONE -U NONE --noplugin -N) –  Heptite Mar 18 '13 at 17:33

1 Answer 1

up vote 0 down vote accepted

Not sure if this helps. An alternative is to hold down Shift and type zz.

share|improve this answer
    
this is helpful! may I ask if there's a write-not-quit version of it? –  ssgao Mar 18 '13 at 13:59
    
I don't think so. But you could use map. This example defines the F2 key to write the file. e.g. :map <F2> :w!<CR> –  suspectus Mar 18 '13 at 14:10
    
Thanks, I guess I'll just map W to w –  ssgao Mar 18 '13 at 14:15
    
Mapping W to w isn't really a good idea. I have the problem of not fully releasing shift after pressing : so I just created some user defined commands. For example: :command! -bar -nargs=* -complete=file -range=% -bang W <line1>,<line2>write<bang> <args> –  Heptite Mar 18 '13 at 17:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.