Home >System Tutorial >LINUX >How to solve the problem of being unable to save after editing vimrc in Ubuntu system?

How to solve the problem of being unable to save after editing vimrc in Ubuntu system?

PHPz
PHPzforward
2024-01-03 12:29:381086browse

Solving the problem of being unable to save when editing vimrc directly

1. Open the terminal and enter cd /etc/vim and press Enter

How to solve the problem of being unable to save after editing vimrc in Ubuntu system?

How to solve the problem of being unable to save after editing vimrc in Ubuntu system?

2. Write sudo chmod 777 vimrc, press Enter, enter the password, press Enter, then we list the vimrc files and enter vim vimrcEnter

How to solve the problem of being unable to save after editing vimrc in Ubuntu system?

3. Enter e

How to solve the problem of being unable to save after editing vimrc in Ubuntu system?

4. You can edit it or you can directly edit the vimrc file after completing the second step

How to solve the problem of being unable to save after editing vimrc in Ubuntu system?

5. Open the location of the vimrc file and edit it directly, then save it

How to solve the problem of being unable to save after editing vimrc in Ubuntu system?

How to solve the problem of being unable to save after editing vimrc in Ubuntu system?

How to solve the problem of being unable to save after editing vimrc in Ubuntu system?

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!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete