Solving the problem of being unable to save when editing vimrc directly
1. Open the terminal and enter cd /etc/vim and press Enter
2. Write sudo chmod 777 vimrc, press Enter, enter the password, press Enter, then we list the vimrc files and enter vim vimrcEnter
3. Enter e
4. You can edit it or you can directly edit the vimrc file after completing the second step
5. Open the location of the vimrc file and edit it directly, then save it
related suggestion:
How to take a screenshot of the Ubuntu login interface?
How to set up Ubuntu 16.04 system after installation?
How to customize touchpad gestures in Ubuntu16.04 system?
The above is the detailed content of How to solve the problem of being unable to save after editing vimrc in Ubuntu system?. For more information, please follow other related articles on the PHP Chinese website!