Vim motions is a set of key bindings that allow you to quickly and efficiently edit text.

This is a guide that provides a gentle introduction, with snippets for more advanced features.

Modes

Editing

Simple editing

y - yank (copy) p - paste d - delete x - cut

Complex Editing

Replace last 12 characters of each line

s/\(.\{12}\)$//
char represents
% full document
$ end of line
^ start of line