当前位置:网站首页>VIM auto fill auto indent explanation
VIM auto fill auto indent explanation
2022-06-26 14:21:00 【select one pointer】
Take a snapshot in advance !!!
1. First, check out vim Version of Check if it is 8.0 And above
vim -version
2. Take a look at the current one vim Do you support python3 If it appears +python3 This one supports , -python3 Show no support for
vim --version | grep python
(3.3) To configure function configure And add a suffix
./configure --with-features=huge -enable-python3interp --with-python-config-dir=/usr/lib64/python3.6/config-3.6m-x86_64-linux-gnu
The back here python and python3 Choose one from two , After choosing vim Only one of them is supported , Recommended here python3, Because some plug-ins only need python3 Runtime support
And the path here should be modified , I'm here python The path is in /usr/lib64 Below , Maybe some people are /usr/lib Under the , Find the appropriate config File can
(3.4) Compile installation configuration
sudo make # compile
sudo make install # install
export PATH=/usr/local/bin:$PATH # After installation, the default setting is /usr/local/bin Under the
4. install vimplus plug-in unit
(4.1) Get installation package
(4.1.a) Directly from git clone Come down
git clone https://github.com/chxuan/vimplus.git ~/.vimplus
(4.1.b)
Similarly, if the above git clone Very slowly , I can't download it in half a day , You can download it directly github Official website vimplus-master.zip After decompression
unzip vimplus-master.zip
(4.2) install
cd ~/vimplus-master
./install.sh
(4.3) In the process of waiting , Will appear for you to use python2 still python3 Compile ycm, Choose here 3 that will do
(4.4) After the final installation, the plug-in will be automatically installed , Finally, you will enter a download interface of various plug-ins , If the plug-in downloads normally at this time, you can wait for the download to complete . If the plug-in has not been downloaded for a long time , Or many plug-ins fail to download , You can see the following tutorial , Even if the following methods are used for setting .
(4.5) Finally, your vim All plug-ins of are placed in ~/.vim/plugged Under the table of contents , Can enter the cd ~/.vim/plugged To view the .
If you find that there is only one plug-in Ycm Or there are only a few plug-ins , Then you can copy mine plugged.zip File to your linux On , then unzip plugged.zip
Get one plugged Catalog , Then we put the original plugged Delete , rm -rf ~/.vim/plugged , Unzip the result plugged Move past
mv plugged ~/.vim , Finally, write our configuration file , Here you can use mine directly vimrcbf, At this time .vimrc Delete or backup a copy .
rm -f ~/.vimrc, Actually this .vimrc It's a soft link . And then vimrcbf Renamed as .vimrc.
mv vimrcbf .vimrc
Then try again vim Whether it has the function
Get into vim After the normal In mode , Press down <leader> + h , You can open the help document . <leader> The default is "," Can be in .vimrc Make changes , Shortcut keys for many functions can be found in .vimrc Make changes
边栏推荐
- Hard (magnetic) disk (II)
- [sdoi2013] forest
- Exercise set 1
- Sword finger offer 18.22.25.52 Double pointer (simple)
- Wechat applet -picker component is repackaged and the disabled attribute is added -- below
- Bug STL string
- Linear basis
- Codeforces Global Round 21A~D
- 7.Consul服务注册与发现
- 9 regulations and 6 prohibitions! The Ministry of education and the emergency management department jointly issued the nine provisions on fire safety management of off campus training institutions
猜你喜欢

Practice with the topic of bit operation force deduction

8.Ribbon负载均衡服务调用

Pointer

7.consul service registration and discovery

Reprint - easy to use wechat applet UI component library

Zero basics of C language lesson 7: break & continue

ThreadLocal giant pit! Memory leaks are just Pediatrics

hands-on-data-analysis 第三单元 模型搭建和评估

Correlation analysis related knowledge

Select tag - uses the default text as a placeholder prompt but is not considered a valid value
随机推荐
Zero basics of C language lesson 8: Functions
Related knowledge of libsvm support vector machine
Self created notes (unique in the whole network, continuously updated)
ArcGIS cannot be opened and displays' because afcore cannot be found ' DLL, solution to 'unable to execute code'
免费的机器学习数据集网站(6300+数据集)
[hcsd application development training camp] one line of code second cloud evaluation article - experience from the experiment process
虫子 STL string 下 练习题
Eigen(3):error: ‘Eigen’ has not been declared
Wechat applet SetData dynamic variable value sorting
[cqoi2015] task query system
New specification of risc-v chip architecture
CF676C Vasya and String
Codeforces Round #765 (Div. 2) D. Binary Spiders
虫子 类和对象 上
Comparison of disk partition modes (MBR and GPT)
Formal parameters vs actual parameters
Setup instance of layout manager login interface
CVPR 2022文档图像分析与识别相关论文26篇汇集简介
Sword finger offer 40.41 Sort (medium)
1075 pat judge (25 points)