PracticalVim Tip45 - yszheda/wiki GitHub Wiki

Tip 45: Save a File as the Super User

Return to the top: <> %toc

  • `:write !{cmd}`: send the contents of the buffer as standard input to the specified `{cmd}`

References

  • `%`: expands to represent the path of the current buffer

References

⚠️ **GitHub.com Fallback** ⚠️