Linux配置vimplus

发布于:2025-05-19 ⋅ 阅读:(19) ⋅ 点赞:(0)

配置vimplus

CentOS的配置方案很简单,但是Ubuntu的解决方案网上也很多但是有效的很少,尤其是22和24的解决方案,在此我整理了一下我遇到的问题解决方法 

CentOS7 一键配置VimForCPP

 基本上不会有什么特别难解决的报错

 sudo yum install vim
 sudo yum install git
 curl -sLf https://gitee.com/HGtz2222/VimForCpp/raw/master/install.sh -o ./install.sh && bash ./install.sh
 source ~/.bashrc
 bash ~/.VimForCpp/uninstall.sh  #卸载方法

Ubuntu20.04 / 22.04 / 24.04配置vimplus

sudo apt install vim-youcompleteme
sudo apt install git 
git clone https://github.com/chxuan/vimplus.git ~/.vimplus
cd ~/.vimplus
./install.sh

离线方案

tar -zxvf vimplus.tar.gz

 错误解决方案

出现报错, 一般Ubuntu20.04会出现此错误

sudo vim ~/.vimrc

 原.vimrc

308 let g:NERDTreeIndicatorMapCustom = {                             
309     \ "Modified"  : "✹",
310     \ "Staged"    : "✚",
311     \ "Untracked" : "✭",
312     \ "Renamed"   : "➜",
313     \ "Unmerged"  : "═",
314     \ "Deleted"   : "✖",
315     \ "Dirty"     : "✗",
316     \ "Clean"     : "✔︎",
317     \ 'Ignored'   : '☒',
318     \ "Unknown"   : "?"
319     \ }

修改line 308 “g:NERDTreeIndicatorMapCustom” 为   “g:NERDTreeGitStatusIndicatorMapCustom”

308 let g:NERDTreeGitStatusIndicatorMapCustom = {
309     \ "Modified"  : "✹",
310     \ "Staged"    : "✚",
311     \ "Untracked" : "✭",
312     \ "Renamed"   : "➜",
313     \ "Unmerged"  : "═",
314     \ "Deleted"   : "✖",
315     \ "Dirty"     : "✗",
316     \ "Clean"     : "✔︎",
317     \ 'Ignored'   : '☒',
318     \ "Unknown"   : "?"
319     \ }
 Ubuntu22.04可能会出现此错误

Vimplus报错解决:The ycmd server SHUT DOWN (restart with ‘:YcmRestartServer‘). Unexpected exit code 1.

sudo apt install vim-youcompleteme
sudo apt install vim-addon-manager
vim-addon-manager install youcompleteme
 Ubuntu24.04可能会出现此错误

解决方案同上 

结语

lin/Linux 离线安装包放在gitee下,LinuxSettingAndError.md 下放了一点别的错误解决方案,会持续更新,收录解决方案


网站公告

今日签到

点亮在社区的每一天
去签到