News for hackers. Stuff that matters.
Re:I have no capslock and I must scream by bdowling on Tuesday February 22, 2022 @02:12AM (#30424871)
Or in vim you type `constant_name`, followed by `Esc gUb`. ('g' go, 'U' uppercase, 'b' back one word.)
Re:I have no capslock and I must scream by tsimionescu on Tuesday February 22, 2022 @03:34AM (#30425389)
That's still 3 extra key strokes, including a key combination, to go from writing the constant name back to writing the next word (with caps lock: caps lock, constant_name, caps lock; without caps lock: constant_name, Esc, g, shift+u, b, i - you also need w, i to get back to the end of CONSTANT_NAME and keep typing). Also, switching mode, applying a command, then switching mode again versus pressing a key for uppercase and pressing it again for lowercase is a much bigger distraction from my point of view (emacs user) but maybe you actually get used to that using vim.
Re:I have no capslock and I must scream by rgoulter on Tuesday February 22, 2022 @05:03AM (#30425996)
> versus pressing a key for uppercase and pressing it again for lowercase

FWIW, "Caps Lock" is modal.

e.g. the Wikipedia page lists "Caps Lock" as a common example of mode errors. https://en.wikipedia.org/wiki/Mode_(user_interface)#Mode_err...

(No vim = not worrying about insert/normal mode; no capslock = no worrying about if tapping 'a' gives 'A' or 'a').

Re:I have no capslock and I must scream by tsimionescu on Tuesday February 22, 2022 @11:15AM (#30429677)
True, but at least to me switching between CAPS MODE and lowercase mode is less distracting than switching between editing and command/visual modes.