4 ms·
> in Vim you use $ to move to end of line, and ^ to move to begin of line. Not only is it unintuitive To be fair, that is intuitive if you learned regexes befo
by messe 3y ago
> in Vim you use $ to move to end of line, and ^ to move to begin of line. Not only is it unintuitive
To be fair, that is intuitive if you learned regexes before VIM.
The important part is those motion commands compose. If I wanted to visually select up until the end of the line, I can type v$ — if I want to delete everything from this position to the start of the line, I could type d^. In the middle of a word that needs to disappear? diw (delete in-word). Do I want to copy that word? yiw (yank in-word). Eventually, outside of composing macros (another great feature), you don't really think about the underlying letters of finger movements to perform a certain task; you just do it.
It's not for everyone, and it does come with a downside of making every other code editor feel borderline unusable unless it comes with a good VIM plugin (Jetbrains' suite of IDEs are great for this, and VSCode is pretty good).