Notes‎ > ‎

Vi

[formatting]
Wraps long lines into 80 character lines
!!fmt -80

Prettify JSON
:%!python -m json.tool

[buffer]
Read the output of command into vi buffer
!!command || :r!command

[superuser]
:w !sudo tee % >/dev/null

Comments