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

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

必备条件

  • 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个小时,嚓!

参考


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

查看所有标签

猜你喜欢:

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

Traction: A Startup Guide to Getting Customers

Traction: A Startup Guide to Getting Customers

Gabriel Weinberg、Justin Mares / S-curves Publishing / 2014-8-25 / USD 14.99

Most startups end in failure. Almost every failed startup has a product. What failed startups don't have is traction -- real customer growth. This book introduces startup founders and employees to......一起来看看 《Traction: A Startup Guide to Getting Customers》 这本书的介绍吧!

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

在线压缩/解压 JS 代码

随机密码生成器
随机密码生成器

多种字符组合密码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试