Vim Save File With Sudo Posted May 3, 2023 By your_full_name 1 min read 1 :w !sudo tee % Reference: How To Save A File In Vim / Vi Without Root Permission With sudo vim vim This post is licensed under CC BY 4.0 by the author. Share