Original link: ssshooter.com/2020-01-22-…
The whole process is not difficult, but I am a stranger to Linux system, so I feel a little confused when compiling and installing. However, after installing it, I feel that it is not difficult to compile the configured source code with the compiler, and then run the program. In fact, I do not need to do anything difficult.
8 install vim
In fact, centOS 7.5 users do not have the option to install vim 8 directly, although they can go to a repository and yum solution, but unfortunately, the repository is 404.
Therefore, only old utility source make.
First pull up vim’s official warehouse: github.com/vim/vim
Get in a word: Here there is a very hot place is the Tencent Cloud Clone Github warehouse is too slow, I have to save the country plan is to pull a Github warehouse in Gitee, and then clone Gitee warehouse, but this is not omnipotent. Because some cases are in a library and then pull other library code, this can not be pulled over one by one, more trouble.
Assuming you have pulled the warehouse, go to the SRC folder of the warehouse:
cd src
Copy the code
You can’t use YouCompleteMe without it. (I’m using Py2.7, so I’ll just use 2.7.)
YouCompleteMe unavailable: requires Vim compiled with Python… Don’t ask me how I know…
. / configure -- enable - pythoninterp - with - python - config - dir = / usr/lib/python2.7 / configCopy the code
** The python-config-dir address is correct. Yum install gcc-C ++ : yum install gcc-C ++ : yum install
make && make install
Copy the code
To open the latest version of Vim, run vim directly from the SRC directory. Add an environment variable to $PATH if you don’t feel comfortable doing so.
This is followed by installing the plug-in manager (VimPlug, etc.) and editing the configuration file vIMRC, which will not be expanded here.
YouCompleteMe installation
Here YouCompleteMe is installed using VimPlug as an example.
The first step is the same as a normal plugin:
Plug 'valloric/youcompleteme'
Copy the code
After configuration, run PlugInstall in vim.
The second step is to install a Cmake compiler because the plugin also needs to be compiled to use.
The third step is to open the youcompleteme place folder (with VimPlug words should be in ~ / vim/plugged/youcompleteme) run. / install. Py.
Install needs to pull several dependent projects first. These projects are naturally stored on Github. As mentioned above, Tencent Cloud Pull Github warehouse is really slow, so this step is also a long time.
At this point youCompleteme is working, but you can still configure the plugin to work best for you.
For JavaScript users, take a look at YouComplete Completion #javascript-and-typescript-semantic-completion
Finally, I recommend vimawesome where to find plugins