In vim I can use f
followed by a character to go to the next occurrence of that character on the current line. For example, if I have the following (cursor position marked with |
):
m|akeBinExprNode = undefined
I can use fB
to move to B
and dtE
to delete until before the E
, leaving me with:
make|ExprNode = undefined
I wonder if there's a way to do this that doesn't involve typing the exact character, i.e. some kind of motion that means "go to the next capital letter" and/or "go to right before the next capital letter".
Pressing the 'shift' key allows you to type capital letters and the symbols at the top of the keys. 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.
Double-tap the shift key for caps lock Want to type in ALL CAPS? No problem! Just double-tap the shift key and a blue indicator will light up. You'll know you're in all caps because the letter keys will change to uppercase.
Title case, which capitalizes the first letter of certain key words. Sentence case, in which titles are capitalized like sentences. Initial case, where the first letter of every word is capitalized.
Capital letters (also called upper case) are letters used at the beginning of a sentence and for a proper noun. They may also be used at the beginning of the important words in a title or sign. Capitalisation is the writing of a word with its first letter in upper case and the remaining letters in lower case.
When I searched for that I would be happy to just have the "native" solution: just enter in command mode:
/\u
which stands for "search for an uppercase letter". After that just move between capital letters with n
and N
(shift + n).
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