on ubuntu16.04
vimplus is a vim configuration that integrates multiple vim plug-ins. It realizes one-click installation, which is very convenient. You can view its detailed information and help on the official website
https://github.com/chxuan/vimplus.git
install vimplus
git clone https://github.com/chxuan/vimplus.git ~/.vimplus
cd ~/.vimplus
./install.sh
Among them, when using vim's PlugInstall, an error will be reported and cannot access github. The solution
The essence is that the github website cannot be accessed. The solution is to change the mirror source.
Refer to https://blog.csdn.net/htx1020/article/details/114364510
cd ~/.vim/autoload
vim plug.vim
Will
let fmt = get(g:, 'plug_url_format', 'https://git::@github.com/%s.git')
change into
let fmt = get(g:, 'plug_url_format', 'https://git::@hub.fastgit.org/%s.git')
Will
\ '^https://git::@github\.com', 'https://github.com', '')
changed to
\ '^https://git::@hub.fastgit\.org', 'https://hub.fastgit.org', '')
Restart vim
and enter:
PlugInstall
Manually compile and install YouCompleteme
cd ~/.vim/plugged/YouCompleteMe
python3 install.py --clang-completer
will prompt to use
git submodule update --init --recursive
During the period, due to the wall of github, there may be a problem of slow downloading
It can be replaced with a domestic mirror source to increase the speed:
edit the hidden file .gitmodules in the folder, and
add the suffix .cnpmjs.org after the url address github.com
clangd is used for code completion of c family in ycm, and there is a problem that the installation package cannot be downloaded
Solution:
First confirm whether your youCompleteme is the latest version , the new version has replaced the source of clangd,
If you still can't download, you can take the following strategies
for reference: https://blog.csdn.net/sunshine_world/article/details/109862228
manual download
clangd-x.0.0-x86_64-unknown-linux-gnu.tar.bz2
arrive
~/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/clangd/cache
extract to
~/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/clangd/output
Re-run
cd ~/.vim/plugged/YouCompleteMe
python3 install.py --clang-completer