使用SpaceVim配置Go语言开发环境

栏目: Go · 发布时间: 5年前

必备条件

  • Linux系统
  • Go语言运行时
  • SpaceVim安装包

SpaceVim和Vim并存

  • 安装SpaceVim
curl -sLf https://spacevim.org/install.sh | bash
  • 卸载,并不会实际删除SpaceVim
curl -sLf https://spacevim.org/install.sh | bash -s -- --uninstall
  • 在.bashrc中,增加
alias svim='vim -u ~/.SpaceVim/vimrc'
  • 使用svim启动SpaceVim

加入对Golang的支持

  • 进入.SpaceVim.d目录,在Init.toml中加入
[[layers]]
name = 'lang#go'
  • 保存,启动,OK了

踩过的坑

  • 配置文件不在.SpaceVim目录
  • 配置文件的具体路径,官方只字未提,浪费我2个小时,嚓!

参考


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Visual Thinking

Visual Thinking

Colin Ware / Morgan Kaufmann / 2008-4-18 / USD 49.95

Increasingly, designers need to present information in ways that aid their audiences thinking process. Fortunately, results from the relatively new science of human visual perception provide valuable ......一起来看看 《Visual Thinking》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

在线进制转换器
在线进制转换器

各进制数互转换器

MD5 加密
MD5 加密

MD5 加密工具