链接: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 = 1 let g:go_highlight_types = 1 let g:go_highlight_fields = 1 let g:go_highlight_functions = 1 let g:go_highlight_function_calls = 1 let g:go_highlight_operators = 1 let g:go_highlight_extra_types = 1 Plugin 'Valloric/YouCompleteMe' set nocompatible set backspace=indent,eol,start set ts=4 "set expandtab if has("autocmd") au BufReadPost * if line("'"") > 1 && line("'"") <= line("$") | exe "normal! g'"" | endif endif