vim保存root文件

一、使用 shell

:w !sudo tee %

二、在vimrc文件中保存vim

command -nargs=? Sudow :w !sudo tee %
相關文章
相關標籤/搜索