1. Force exit first
:q!
2. After exiting, execute
:sudo !!
3. Edit the content you want to edit again
vim ...
4. Save it again
:wq!
1. Force exit first
:q!
2. After exiting, execute
:sudo !!
3. Edit the content you want to edit again
vim ...
4. Save it again
:wq!