In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to set the length line number of Tab in the Vim editor in Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
When writing scripts using the Vim editor, you often encounter multiple looping statements, which are customarily filled with the tab key. At this time, setting the length occupied by the tab key can adjust the tightness of the interface to achieve satisfactory results.
When setting up for individual users and for all users, it is very similar to editing the corresponding configuration file for SSH.
one。 Sets the length of the Tab key for the current user
Edit the configuration file ~ / .vimrc
Vim ~ / .vimrc set tabstop=2 / / sets the length of Tab to 2 bytes
Save and exit
two。 Set the length of the Tab key for all users
Edit the configuration file / etc/vimrc here and add the set tabstop parameter at the end of the file.
Vim / etc/vimrc set tabstop=2 / / set the Tab length to 2 bytes
If you want to display the line number as soon as you enter the file editing interface, instead of typing: set nu every time, you just need to add set nu to the configuration file.
As with the Tab length set above, ~ / .vimrc corresponds to the current user and / etc/vimrc corresponds to all users.
Thank you for reading! This is the end of the article on "how to set the length line number of Tab in the Vim editor in Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.