在这里先附WINDOWS配置教程 https://www.cnblogs.com/eternalnight/p/13900059.html #未更新
Linux 2021 VIM自动补全多语言,js,go,c/c++,java,css,html,python,演示发行Ubuntu20.4
sudo apt-get update
sudo apt-get install vim git vim-gtk3 cmake python3.8 python3.8-dev -y #基础安装
sudo apt-get install npm yarn -y #前端 如果不开发前端 可以不安装
sudo apt-get install ctags -y #ubuntu直接输入这个
sudo apt install universal-ctags -y #kali linux 则输入这个
# Golang 安装以及配置
wget -c https://dl.google.com/go/go1.16.5.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local
echo export GOPATH=$HOME/GO >> ~/.bashrc
echo export GOROOT=/usr/local/go >> ~/.bashrc
echo export PATH=$PATH:$GOROOT/bin:$GOPATH/bin >> ~/.bashrc
source ~/.bashrc
mkdir -p $GOPATH/{src,pkg,bin}
go get -u github.com/nsf/gocode
#要么在 ${GOPATH}/src/github.com/nsf/gocode/vim
#要么在 ${GOPATH}/pkg/mod/github.com/nsf/gocode@v0.0.0-20190302080247-5bee97b48836/vim
cd ${GOPATH}/pkg/mod/gocode@v0.0.0-20190302080247-5bee97b48836
./pathogen_update.sh
chmod +x *.sh
# Rust 安装以及配置
curl https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env
git clone git://github.com/humiaozuzu/dot-vimrc.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
mkdir ~/.vim/bundle
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
vim #打开vim后安装插件 :BundleInstall
OK按着顺序操作上面命令,你就完成部署了。下面有快捷键教程,如果你之前看过则不需要往后看了。
sudo apt-get update sudo apt-get --purge install git vim vim-tiny neovim-qt vim-athena vim-gtk3 vim-nox sudo apt-get install ctags git clone git://github.com/humiaozuzu/dot-vimrc.git ~/.vim ln -s ~/.vim/vimrc ~/.vimrc mkdir ~/.vim/bundle git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle vim
sudo vim /etc/bash.bashrc
#-------------转换中文设置 alias ls=\'ls -N --show-control-chars --color=auto\' #-N 和--show-control-chars是重点 alias dir=\'dir -N --color=auto\' #------------单单输入这两条也可以 export LANG="zh_CN.UTF-8" export LC_ALL="zh_CN.UTF-8" #可以输入中文 set meta-flag on set output-meta on
Ctrl + F2 书写格式规范
Ctrl + F6 测试自动化测试快捷键