About half year ago I decided to improve my programming efficiency, so I learned touch-typing and moved to Vim. All is fine and I feel myself much better than before. However there is a question that annoys me all that time: how should I touch-type IDENTIFIERS_WRITTEN_IN_CAPS
?
GOOGLE
in this case is a challenge.How do you touch-typists deal with SQL, Makefiles, Win API, DirectX and all that stuff that requires printing in caps?
The 'shift' keys are on the left and right of the keyboard, with the arrow pointing upwards. For capital letters, hold down the 'shift' key and hold and type the letter.
Dictionary.com credits some early internet message board denizens with setting the modern foundation for what we now collectively understand: Typing in all caps is essentially yelling. And just like yelling in real life, it is sometimes useful, and sometimes just plain rude.
Caps lock is the name of a key on a computer keyboard. When you press this key, letters that you type will be capital letters (like this, "ABC"), instead of lowercase ("abc"). The caps lock key is usually above the Shift key and below the Tab key on the left side of the keyboard.
Touch typing is all about the idea that each finger has its own area on the keyboard. Thanks to that fact you can type without looking at the keys. Practice regularly and your fingers will learn their location on the keyboard through muscle memory.
I just keep left shift pressed with my pinky finger and type normally, it doesn't seem to affect my left hand's ability to find keys. I very rarely use caps lock.
However, most of the identifiers are completed by Vim's insert mode completion, so actual typing is not that much: usually IDENTIFIERS_WRITTEN_IN_CAPS
is just ID
+<keyword_completion_key>
In Vim you may try something like this:
In command mode type
:imap <Leader>u <ESC>bgUwwi
Now, in insert mode you can type it lowercase, then (also in insert mode) press <Leader>u
(Leader is \ by default) and it gets uppercase, e.g.:
identifiers_written_in_caps\u
gets transformed into
IDENTIFIERS_WRITTEN_IN_CAPS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With