Construct commands like:
["register][operator][count][motion]
y/foo
):w !sbcl
or :'<,'>w !python
Pipe to vim like:
$ grep 'foo*bar' file.txt | vim -
Type ctrl-v ESC to insert an escape keystroke in the norm argument.
* is the X11 primary/selection buffer (middle-click/shift-insert). + is the clipboard/cut buffer (ctrl-c/ctrl-v).
"*p "+y "*dd :%y +
Under Windows, the * and + registers are equivalent.
Format to 80 columns (see :help formatoptions
):
:set textwidth=80
{motion} like
ggVG
gqgqap to format around paragraph