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
Release: 2024-01-03 12:29:38
forward
1085 people have browsed it

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template