macos:
brew install macvim# 如果发生问题 tar: Error opening archive: Failed to openhttps://github.com/Homebrew/brew/issues/11209# I installed Homebrew for the first time. In addition, because I am living in mainland China, it is very slow to access the official GitHub repository for some reasons. I designated a mirror:xcode-select --installexport HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"git clone https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/install.git
./install/install.shtest -r ~/.zprofile && echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofilebrew install jqcd .vimplus. update.shvim test.c
# 发现 The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). YCM core libra
cd ~/.vim/plugged/YouCompleteMe
./install.py
# 修复完成
Linux(kali)
# 需要重新编译vim,让它支持python3
https://blog.csdn.net/u012587734/article/details/78572355/
# 卸载原先的vim和vimplus
cd .vimplus/
./uninstall.sh
1.sudo apt-get remove vim //输入re按下tab直接显示remove2.sudo apt-get remove vim-runtime3.sudo apt-get remove vim -tiny4.sudo apt-get remove vim-common# 下载源码
git clone https://github.com/vim/vim.git# 重新编译
cd vim/src
./configure --with-features=huge \--enable-multibyte \--enable-rubyinterp=yes \--enable-pythoninterp=yes \--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \--enable-python3interp=yes \--with-python3-config-dir=/usr/lib/python3.9/config-3.9-x86_64-linux-gnu \--enable-perlinterp=yes \--enable-luainterp=yes \--enable-gui=gtk2 --enable-cscopesudo make
sudo make installwhereis vim
cp /usr/bin/vim /usr/bin/vim.bak
cp /usr/local/bin/vim /usr/bin/vim
vim --version
# 看看是不是支持python3# 重新安装vimplus
cd .vimplus/
./install.shvim test.c
# 发现 The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). YCM core libra
cd ~/.vim/plugged/YouCompleteMe
./install.py
# 修复完成
本文链接:https://my.lmcjl.com/post/4986.html
展开阅读全文
4 评论