In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Ubuntu version:
Kernel version:
Installation of vim-go: https://github.com/fatih/vim-go 1. Upgrade vim, the vim version of this version of ubuntu is too low for sudo apt-get install software-properties-common sudo add-apt-repository ppa:jonathonf/vim sudo apt update sudo apt install vim 2. Install go1.12 3. Install git: apt-get install git-y 4. Install Vundle https://github.com/VundleVim/Vundle.vim a. Create a directory: ~ / .vim/bundle/Vundle.vim b. Git clone https://github.com/VundleVim/Vundle.vim.git ~ / .vim/bundle/Vundle.vim c. Change the .vimrc and follow the git link above. Only Plugin 'VundleVim/Vundle.vim' d. VIMRC is reserved for plugin. Open vi and type: PluginInstall 5. Install vim-go https://github.com/fatih/vim-go a. Because you have upgraded to vim8, you can install it with Vundle or git directly. Refer to the Install section b. Install with Vundle: 1) add a line Plugin 'fatih/vim-go' 2 to .vimrc) Open vi to execute: PluginInstall. After installation, as shown in the following figure, you can see that two plug-ins are installed
3) Open vi and execute: GoInstallBinaries. Due to network reasons, some parts will not be packaged.
4) manually install golang.org/x/tools/cmd/guru
Mkdir-p $GOPATH/src/golang.org/x/tools & & git clone https://github.com/golang/tools.git $GOPATH/src/golang.org/x/tools
Cd $GOPATH/src/golang.org/x/tools/cmd/guru & & go install
5) manually install golang.org/x/lint/golint
Mkdir-p $GOPATH/src/golang.org/x/lint & & git clone https://github.com/golang/lint.git $GOPATH/src/golang.org/x/lint
Cd $GOPATH/src/golang.org/x/lint/golint & & go install
6) manually install github.com/kisielk/errcheck.git
Mkdir-p $GOPATH/src/github.com/kisielk & & git clone https://github.com/kisielk/errcheck.git $GOPATH/github.com/kisielk
Cd $GOPATH/github.com/kisielk/errcheck & & go install
Edit a .go file, press Ctrl-X and then press Ctrl-O to see if there is any hint, as shown in the following figure
Next install YCM
Because Vundle is installed before, we use Vundle to install YCM, so we don't need to press the shortcut key when we need to be prompted by YCM
Add: Plugin 'Valloric/YouCompleteMe' to. / vimrc
Apt install build-essential cmake3 python3-dev-y
Open vi, type: PluginInstall, wait for completion, you may not find the module and so on.
Cd / .vim/bundle/YouCompleteMe
Git submodule update-init-recursive
Waiting for completion, it takes a long time here.
Python3 install.py-- go-completer, after compilation, you can use auto-completion
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.