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

Mac os / linux vi/vim permanent display line number turns on highlight mode

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Temporary display:

Enter the vi editor and enter the command

: set number / / the line number cannot be displayed next time when entering vi

: set nonumber / / this time vi closes line number display

Vi is recommended to use the command after each modification:

Source / .bash_profile

Permanent mode:

Step 1:

Cp / usr/share/vim/vimrc ~ / .vimrc

First copy a vim configuration template to the personal directory

Note: change redhat to cp / etc/vimrc ~ / .vimrc

Step 2:

Vi / .vimrc

Enter insert mode and add two lines at the end

Syntax on

Set nu!

Save and exit and go to vi to see the effect.

Isn't it very cool!

Today's recommended reading articles are recommended

JMeter database operation

Jmeter Interface Test-regular expression

JMeter returns garbled code in Chinese

Jmeter interface testing-parameterization

JMeter Interface testing-Basics

Test-impression

Add Wechat to the consulting work

scan a QR code

Welcome self-recommendation and recommendation, need Wechat to push resume!

Please poke the QR code below to learn more.

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

Internet Technology

Wechat

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

12
Report