盲打大写字母标识符
大约半年前,我决定提高编程效率,所以我学习了盲打并转向了 Vim。一切都很好,我感觉自己比以前好多了。然而有一个问题一直困扰着我:我应该如何触摸输入IDENTIFIERS_WRITTEN_IN_CAPS
?
- 如果我按照所有规则使用轮班,我将不得不经常换手。在这种情况下尝试输入
GOOGLE
是一个挑战。 - 如果我一直只使用左移,我就会失去左手的物理记忆,并且无法盲目地找到钥匙。
- 如果我使用大写锁定,我必须记住释放它。在 Vim 中忘记这一点将导致命令模式的灾难。此外,许多重新映射大写锁定到其他功能,例如 Esc 或键盘布局切换。
盲打打字员如何处理 SQL、Makefile、Win API、DirectX 以及所有需要大写字母打印的内容?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我只是用小指按住左Shift键并正常打字,这似乎并不影响我左手寻找按键的能力。我很少使用大写锁定。
然而,大多数标识符都是由 Vim 的插入模式完成完成的,因此实际输入的内容并不多:通常< /代码>
IDENTIFIERS_WRITTEN_IN_CAPS
只是ID
+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 justID
+<keyword_completion_key>
在 Vim 中你可以尝试这样的操作:
在命令模式下输入
现在,在插入模式下你可以输入小写字母,然后(也在插入模式下)按
u
(默认情况下,Leader 是 \ )并且它变成大写,例如:变成
In Vim you may try something like this:
In command mode type
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.:gets transformed into
我个人只是输入第一个字母,然后按-P 并开始使用自动完成:)
(遗憾的是,我从来没有变得非常精通触摸打字,因为我总是在 vim 和 bash 中使用自动完成)。
I personally just type the first letters and then press <Ctrl>-P and start using autocompletion :)
(Sadly, I've never become very proficient at touch-typing because I always use autocompletion, both in vim and in bash).