News for hackers. Stuff that matters.
Re:Why Vi Rocks by base698 on Wednesday April 10, 2019 @10:01PM (#19630510)
It's actually not that hard:

The formula: number(Optional) action movement

Examples:

2 dl - delete two characters right

dw - delete a word

yb - copy back a word

y/foo - copy to the search foo

4cw - change the next four words

actions: yank(copy, delete, change)

movements: /(search), t(til character), f(to character), many many others (l, h, j, k, *, #, T, F)

Combine as you see fit.

Re:Why Vi Rocks by nitemice on Wednesday April 10, 2019 @11:21PM (#19630890)
`action [number] movement` also works, and makes more sense to my brain.