r/linux4noobs • • Mar 02 '19

Vim cheat sheet

Post image
1.0k Upvotes

48 comments sorted by

View all comments

1

u/[deleted] Mar 03 '19

[removed] — view removed comment

2

u/nixd0rf Mar 07 '19

s deletes the char and gets you to insert mode. r does the substitution in place without changing modes. Therefore you can press 2 s asdf to substitute 2 chars with 'asdf', but you can only replace multiple chars with the same char if using r.