3 ms·
> After the f(, you probably want h to move the cursor left onto the space before the (. Or just use t( to automatically move to the preceding space. ;) The b
by nuclear_eclipse 16y ago
> After the f(, you probably want h to move the cursor left onto the space before the (.
Or just use t( to automatically move to the preceding space. ;)
The best part about Vim is that you can ask 50 people about shotcuts and get 50 distinct answers, and each person can learn something new from each other. :)
- Xurinos 16y agoGood catch! So true. I forgot about this point, a concept I do not see a lot of in emacs: vim has a number of similar functions that differ purely by where the cursor ends up. The f vs t is one such distinction. Another is navigation of words by first letter or last letter (w vs e). Not often mentioned is the variations of block highlighting, where I can quickly (two or three letters) highlight my block and choose whether or not to include the beginning and end of block. For example, when I am in the middle of a sexp, vi( highlights everything inside the parentheses, and va( includes the parentheses. For {}s, just use vi{ and va{. And there are more options like these for saving keystrokes that, thanks to generally consistent policies, are the same for multiple commands -- cw (change the next word), dw (delete the next word), vw (highlight the next word), etc.