In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Ubuntu vim syntax how to set automatic indentation, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
1. Install vimsudo apt-get install vim-full
2. The location of the configuration file is under the directory / etc/, and there is a file called vimrc, which is the common Ubuntu vim configuration file in the system and is valid for all users.
3. Set syntax highlighting 1) Open Ubuntu vimrc and add the following statement to make the syntax highlight: syntax on2) if the syntax is still not highlighted at this time, add the following statement to the profile file in the / etc directory: export TERM=xterm-color
4. Set the Windows style of Candlestick + automatic indentation (add the following set statement to vimrc)
1) set the (soft) tab width to 4:set tabstop=4 set softtabstop=4
2) set the indentation space to 4 set shiftwidth=4
3) set automatic indentation: that is, the indentation value of each row is equal to that of the previous line; use noautoindent to unset: set autoindent
4) set the automatic indentation mode using the Cstroke Cobb + language: set cindent
5) set the specific indentation mode of the Cash Craft + language: set cinoptions= {0rect 1s recorder t0p2s, (03s recorder .5s, > 1s recorder 1s recorder 1s.
6) if you want to display the line number of the text on the left, you can use the following statement: set nu
7) *, if you don't have the following sentence, add it:
If & term== "xterm" set t_Co=8 set tasking SB = ^ [[4%dm set tasking Sf = ^ [[3%dm endif] is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.