Tricks and actions one can perform in vim that I’m likely to forget if I don’t use them frequently enough.

Substitutions

Change the next occurence of ’notintheface’ on this line to ‘spoon’.

:s/notintheface/spoon/

Change all occurences of ‘arthur’ to ’the tick’ on this line.

:s/arthur/the tick/g

Change all occurences of ’evil’ to ‘vanquished’ in the whole document.

:%s/evil/vanquished/g

Confirm each substitution.

:%s/evil/vanquished/gc

Change all occurences of ‘chairface’ with ’not so fast’ in the next 5 lines.

.,+5s/chairface/not so fast/g