vim cannot open file for writing code example
Example: vim cant open file for writing
#close file using following command. This will request for account password
:w !sudo tee %
#close file using following command. This will request for account password
:w !sudo tee %