Hacker News new | ask | show | jobs
by weaksauce 3399 days ago
you can always learn vim stuff by using a plugin for your favorite editor. I'm frustrated quite a bit if I have to use an editor without basic vi shortcuts at the very least.
1 comments

Thanks I'll start there. I keep feeling like I'm missing out on something by not being a Vim expert.
the basics of vim are easy... it's a language to manipulate text with mnemonic shortcuts for the most part and composeable actions.

`daw` is delete around a word(includes the ending space if there).

`ciw` is change inner word.(change the word under the cursor by deleting it and leaving you in insert mode to make changes).

`ci"` is change inside the double quotes.

p is put or paste

d is delete

c is change

f is find

a is insert [a]fter

first answer here[1] is a classic.

1. http://stackoverflow.com/questions/1218390/what-is-your-most...