Last active
May 27, 2019 08:46
-
-
Save OhBonsai/9228121d2bf8c8c3b506c21982e74515 to your computer and use it in GitHub Desktop.
centos7.2 安装vim-go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install -y ruby ruby-devel lua lua-devel luajit luajit-devel ctags mercurial python python-devel python3 python3-devel tcl-devel perl perl-devel perl-ExtUtils-ParseXS perl-ExtUtils-XSpp perl-ExtUtils-CBuilder perl-ExtUtils-Embed ncurses-devel | |
wget -P /etc/yum.repos.d/ https://copr.fedorainfracloud.org/coprs/lbiaggi/vim80-ligatures/repo/epel-7/lbiaggi-vim80-ligatures-epel-7.repo | |
yum remove vim-minimal | |
yum install vim-enhanced | |
mkdir -p ~/.vim/autoload ~/.vim/bundle | |
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim | |
git clone https://github.com/golang/lint $GOPATH/src/golang.org/x/lint | |
git clone https://github.com/golang/tools $GOPATH/src/golang.org/x/tools | |
git clone https://github.com/golang/net $GOPATH/src/golang.org/x/net | |
git clone https://github.com/golang/sync $GOPATH/src/golang.org/x/sync | |
git clone https://github.com/kisielk/errcheck $GOPATH/src/github.com/kisielk/errcheck | |
git clone git@github.com:farazdagi/vim-go-ide.git ~/.vim_go_runtime | |
~/.vim_go_runtime/bin/install | |
brew install python3 | |
pip3 install requests | |
~/.vim_go_runtime/bin/update_plugins | |
alias vimgo='vim -u ~/.vimrc.go' | |
# CTAGS | |
yum install ctags | |
# 编译安装 | |
git clone https://github.com/vim/vim.git | |
cd vim | |
./configure --with-features=huge --enable-multibyte --enable-rubyinterp --enable-pythoninterp -enable-luainterp --enable-gui=gtk2 --enable-cscope --with-tlib=ncurses --prefix=/usr | |
sudo make install | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment