使用yum安装Go
yum install -y golang
安装vim插件管理器Vundle和vim-go插件
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go
配置~/.vimrc文件
set nocompatible filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'gmarik/Vundle.vim' Plugin 'fatih/vim-go' call vundle#end() filetype plugin indent on let g:go_version_warning = 0
使用vim打开文件提示版本过
[root@li1067-142 ~]# vim .vimrc vim-go requires Vim 7.4.1689 or Neovim, but you're using an older version. Please update your Vim for the best vim-go experience. If you really want to continue you can set this to make the error go away: let g:go_version_warning = 0 Note that some features may error out or behave incorrectly. Please do not report bugs unless you're using Vim 7.4.1689 or newer.
如上将let g:go_version_warning = 0添加到.vimrc文件中即可。
本文链接:https://jeff.xin/post/88.html
--EOF--
发表于 2018-02-02 ,并被添加「 Linux 」标签 。
Comments
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。