vim can not open file for writing linux 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 %