基于vim搭建Go语言IDE
开始前提:
系统为unix系统
系统已安装Go语言环境和vim
- 安装vim插件管理工具vundle
- 安装Go语言代码检查和高亮插件vim-go
- 安装语言自动补全工具YouCompleteMe
- 安装代码结构展示插件Tagbar
- 安装目录结构展示插件NERDTree
- 附:vim配色方案
1-安装vim插件管理工具vundle
vundle官方网址:https://github.com/VundleVim/Vundle.vim
安装方法
1.1 在命令行窗口直接输入:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
1.2 打开~/.vimrc,进行配置
set nocompatible
filetype off
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'