dap
delete paragraph with bottom space
dip
delete paragraph
J
capital J will reformat the line below to be on the current line
G;
jumps to the last edit made in the file
zz
centers the current line in the window
Ctrl + v
enter visual mode
highlight the word being altered (in this case, "pick")
c
short for change
type the replace word or letter (in this case, "f" or "fixup")
Ctrl + [
escape and apply the new word to all places that were highlighted
Ctrl + v
enter visual mode
highlight what you want to copy and press y
to yank
highlight what you want to replace
Shift + p
%s/foo/bar/gc
replaces each appearance of "foo" with "bar". The g
will update all instances of "foo" including if there is more than one instance on a line. c
will "confirm" before applying.
Another, perhaps better flow:
find the word that's being changed
*
to highlight all instances
s//bar/g
this updates all instances of the highlighted word to "bar".
Prefix is Ctrl + s
tmux new -s
Prefix + d
tmux attach -t
tmux kill-session -t