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

Writing a file with root privileges from within VimEdit

Created 2011-04-07, updated 2017-05-18

: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).