Apply recorded macro to all opened buffers

:bufdo execute "normal @a" | write

Replace two or more empty lines by one


To type ^M - press Ctrl + v, Enter

Remove lines that do not contains word


Commenting code

Ctrl + -, Ctrl + -


List loaded scripts (plugins)


Get output of external programm

:read !date

Get output of vim command

:redir @a
:redir END

:redir @a - will redirect output to a register, "ap - paste text from register

Pasting text without auto indent

:set past
# insert text
:set nopaste

Or you can bind it to key like this:

set pastetoggle=<F2>