Argument list
Add to the argument list
command |
outcome |
:args ag -l spec_helper |
add command result to args list |
Operate on the argument list
command |
outcome |
:argdo normal @w |
apply w marco to args list |
Formatting
command |
outcome |
gqG |
in visual mode formats buffer from current position to end of file |
Movement
Visual vs Real lines
Vim makes the distinction between real and display line. This comes in handy when lines are wrapped.
command |
outcome |
j |
down one real line |
gj |
down one display line |
Find by character
Only operates on a single line.
command |
outcome |
f{char:c} |
forward to the next occurrence of c |
; |
repeat |
, |
reverse |
F{char:o} |
backward to the previous occurrence of o |
GO TO
command |
outcome |
gf |
go to file under the curose |