Below is a short list of (neo)vim tipps that I like to keep around for future reference. YMMV
gwip
or gwap
.:source
:w !COMMAND
, e.g., :w !wl-copy
to copy the whole buffer to wayland clipboard:w !COMMAND
when in visual mode achives the same thing with just the contents of the selection:r !COMMAND
q{REGISTER}
, e.g., qa
to start recording a macroq
again to stop recording@{REGISTER}
to execute macro@@
to re-execute macro in the last-used register3@a
to execute macro in register a
3 times