Ubuntu下的Vim的Golang语法配置

来源:互联网 发布:微信跳转淘宝app 编辑:程序博客网 时间:2024/05/18 00:22

https://github.com/golangtw/go.vim


git clone https://github.com/golangtw/go.vim.git

把里面的文件拷贝到 $HOME/.vim/ 下 ( 如 /home/user/.vim下,如果.vim 文件夹不存在就新建一个)。

To use all the Vim plugins, add these lines to your $HOME/.vimrc. (如果.vimrc 文件不存在,就新建一个)

  " Some Linux distributions set filetype in /etc/vimrc.  " Clear filetype flags before changing runtimepath to force Vim to reload them.  filetype off  filetype plugin indent off  set runtimepath+=$GOROOT/misc/vim  filetype plugin indent on  syntax on


0 0
原创粉丝点击