This is a creation in Article, where the information may have evolved or changed.
The installation steps for the Vundle.vim are as follows:
mkdir ~/.vim/bundle
git clone https:// github.com/gmarik/vundle.vim.git ~/.vim/bundle/vundle.vim
To create the ~/.vimrc file (if you don't have one), add the configuration about Vundle.vim at the top of the file:
Set nocompatible "be improved, required
FileType off "required
Set the runtime path to include Vundle and initialize
Set Rtp+=~/.vim/bundle/vundle.vim
Call Vundle#begin ()
"Let Vundle manage Vundle, required
Plugin ' Gmarik/vundle.vim '
"All of your Plugins must is added before the following line
Call Vundle#end () "Required
FileType plugin indent on "required
At this point vim only installs the Vundle.vim plugin. Editing hellogolang.go is no different than editing a plain text file, and everything is the default property of Vim.
Edit ~/.VIMRCto add a line between Vundle#begin and vundle#end :
Plugin ' Fatih/vim-go '
Execute the plugininstallwithin Vim,
Vundle.vim will open a Vundle Installer Preview Sub-window on the left, the window will prompt:"processing ' fatih/vim-go '", after the installation is complete, the prompt message becomes "done !”。
At this point, we can see. vim/bundle a Vim-go folder:
$ ls. vim/bundle/
vim-go/vundle.vim/
At this point, edit the Hellogolang.go again, syntax highlighting , save the Automatic format(using $GOBIN/GOFMT) also has, but other advanced features, such as the automatic import missing package, Auto-Completion still no, we have to continue to install some of the stuff.