Skip to content

VIM

Save a file even if you forgot sudo

:w !sudo tee %

Edit a code block

  • Type ctrl+V to enter visual block mode.
  • Select the block you wish to edit.
  • Press I and start editing the block.