Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Touch-typing capital letter identifiers

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?

  • If I will use shifts by all rules, I would have to switch hands very often. Trying to type GOOGLE in this case is a challenge.
  • If I will use just left shift holding it all the time, I would lose the physical memory of the left hand and wouldn't be able to find keys blindly.
  • If I use caps lock, I have to remember to release it. Forgetting this in Vim will lead to apocalypses in command mode. Furthermore, many remap caps lock to something else like Esc or keyboard layout switching.

How do you touch-typists deal with SQL, Makefiles, Win API, DirectX and all that stuff that requires printing in caps?

like image 792
nkrkv Avatar asked Jun 24 '10 12:06

nkrkv


People also ask

How do you type capital letters when touch typing?

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.

What does typing in capital letters mean?

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.

When the key is on all letters that you type will appear in uppercase?

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.

What is it called when you can type without looking at 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.


2 Answers

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>

like image 153
Matteo Riva Avatar answered Sep 28 '22 20:09

Matteo Riva


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
like image 45
dmedvinsky Avatar answered Sep 28 '22 19:09

dmedvinsky