链接:https://pdf.us/2018/11/10/2194.html
问题1:vim-go: could not find 'gopls'. Run :GoInstallBinaries to fix it
解决:https://www.cnblogs.com/jiftle/p/11285930.html
问题2:YouCompleteMe unavailable: requires Vim compiled with Python 2.x support
vimrc配置:
[root@wangjq cable]# cat /root/.vimrc
syntax on
set hlsearch
set nu
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'fatih/vim-go'
call vundle#end()
filetype plugin indent on
let g:go_version_warning =
let g:go_highlight_types =
let g:go_highlight_fields =
let g:go_highlight_functions =
let g:go_highlight_function_calls =
let g:go_highlight_operators =
let g:go_highlight_extra_types =
Plugin 'Valloric/YouCompleteMe'
set nocompatible
set backspace=indent,eol,start
set ts=
"set expandtab
if has("autocmd")
au BufReadPost * if line("'\"") > && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif