Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Where is the vimrc configuration file stored in Ubuntu

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces where the vimrc configuration file in Ubuntu is stored, which has a certain reference value, and interested friends can refer to it. I hope you can learn a lot after reading this article.

Ubuntu vimrc has been widely used but is also constantly updated. Here is an introduction to the use of Ubuntu vimrc installation settings to help you install and update Ubuntu vimrc systems. How to set up Ubuntu how to set up VI the following settings for Ubuntu vimrc apply to Ubuntu and Fedora systems, other systems have not been verified.

The configuration file for vim in Ubuntu is stored in the / etc/vim directory, and the configuration file is called Ubuntu vimrc

The configuration file for vim in Fedora is stored in the / etc directory, and the configuration file is called Ubuntu vimrc

Enter the following command at the terminal to edit the Ubuntu vimrc configuration file:

Sudo vim/ etc/vim/vimrc or sudo gedit / etc/vim/vimrc

Show line number

Add a new line at the end of the file and type set nu

Syntax highlighting

Find the line "syntax on" in the file, with the preceding double quotation marks removed. Double quotes mean comments.

Automatic indent

Add a line at the end of the file and type set autoindent

Before adding a line, enter set cindent

Autoindent is indented automatically; cindent is indented especially for C language syntax.

Note: if Ubuntu vimrc does not take corresponding actions after setting the above settings, please upgrade your Ubuntu vimrc to * * version. Generally, just enter the following command on the terminal: sudo apt-get install vim

Thank you for reading this article carefully. I hope the article "where are the vimrc configuration files stored in Ubuntu" shared by the editor will be helpful to you? at the same time, I also hope you can support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report