• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Writing a file with root privileges from within VimEdit

Created 4/7/2011, updated 5/18/2017

:w !sudo tee % > /dev/null

  • vim
  • wiki
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).