3 ms·
Or in vim you type `constant_name`, followed by `Esc gUb`. ('g' go, 'U' uppercase, 'b' back one word.)
by bdowling 5y ago
Or in vim you type `constant_name`, followed by `Esc gUb`. ('g' go, 'U' uppercase, 'b' back one word.)
- tsimionescu 5y agoThat'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.
- rgoulter 5y ago> 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_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').
- tsimionescu 5y agoTrue, but at least to me switching between CAPS MODE and lowercase mode is less distracting than switching between editing and command/visual modes.