VIM tricks

With the time I found some facy tricks vim tricks. Here is the best of ;)

  • save file if opened without permissions: :w !sudo tee % (see stackoverflow)
  • press dd to delete a single line (normal reading mode)