vim 安装vim-go 打造GOLANG 专用IDE
来源:互联网 发布:java 可视化 编辑:程序博客网 时间:2024/05/16 11:25
分两步:
第一步:安装vim插件管理器Vundle
第二步:安装vim-go插件。
另外:我也写了一个自动安装的脚本。手懒的朋友,可以自行下载使用:https://github.com/aimin/InstallvimGo.git
---------------------------------------------------------------------------------------
开始:
第一步:安装Vundle
根据Vundle的安装说明,首先安装Vundle:
$ git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
然后对.vimrc进行配置,将Vundle的相关配置置在最开始处,下面只显示关于Vundle的相关配置:
对.vimrc进行配置,将Vundle的相关配置置在最开始处,下面只显示关于Vundle的相关配置(详细参考Vundle的README.MD):
- " -------------
- " Vundle
- " https://github.com/gmarik/Vundle.vim
- " -------------
- 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()
- " alternatively, pass a path where Vundle should install plugins
- "call vundle#begin('~/some/path/here')
- " let Vundle manage Vundle, required
- Plugin 'gmarik/Vundle.vim'
- " The following are examples of different formats supported.
- " Keep Plugin commands between vundle#begin/end.
- " plugin on GitHub repo
- ""Plugin 'tpope/vim-fugitive'
- " plugin from http://vim-scripts.org/vim/scripts.html
- ""Plugin 'L9'
- " Git plugin not hosted on GitHub
- ""Plugin 'git://git.wincent.com/command-t.git'
- " git repos on your local machine (i.e. when working on your own plugin)
- ""Plugin 'file:///home/gmarik/path/to/plugin'
- " The sparkup vim script is in a subdirectory of this repo called vim.
- " Pass the path to set the runtimepath properly.
- ""Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
- " Avoid a name conflict with L9
- ""Plugin 'user/L9', {'name': 'newL9'}
- " Install Vim-go
- Plugin 'fatih/vim-go'
- " All of your Plugins must be added before the following line
- call vundle#end() " required
- filetype plugin indent on " required
- " To ignore plugin indent changes, instead use:
- "filetype plugin on
- "
- " Brief help
- " :PluginList - lists configured plugins
- " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
- " :PluginSearch foo - searches for foo; append `!` to refresh local cache
- " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
- "
- " see :h vundle for more details or wiki for FAQ
- " Put your non-Plugin stuff after this line
第二步:安装vim-go (详细查看vim-go的README.MD)
git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go
注意路径在上述~/.vimrc里增加下面一行。
Plugin 'fatih/vim-go'
至此安装完成。
打开.go 文件看看效果吧!
0 0
- vim 安装vim-go 打造GOLANG 专用IDE
- Golang之VIM IDE快速打造
- vim打造IDE
- 打造 Vim IDE
- 打造VIM IDE
- vim 打造python IDE
- vim打造IDE
- vim---打造Python IDE
- Vim打造强大IDE
- vim IDE打造
- golang vim ide 环境搭建
- 使用Vim打造IDE--netrw.vim
- 使用Vim打造IDE--tags
- 使用Vim打造IDE--taglist
- 使用Vim打造IDE--WinManager
- 使用Vim打造IDE--Cscope
- 使用Vim打造IDE--Grep
- 将VIM打造为IDE
- 详解安卓Fragment(碎片化)
- Gradle的文件编码设置
- Singleton模式的例子
- Win8 Metro(C#)数字图像处理--2.35图像肤色检测算法
- 牌型种数 ----蓝桥杯(暴力方法)
- vim 安装vim-go 打造GOLANG 专用IDE
- [C/C++]链表的连接
- 黑马程序员_容器
- 论Android中的值传递
- Qt5串口通信(一)
- Valid Palindrome
- hdu 2141 can you find it?
- xcode 6.0模拟器二次运行后文本框键盘问题
- EasyUI的拖动及放置组件