• golang ubuntu开发环境


    下载解压:

     设置环境变量:vim .profile

    运行

    设置VIM环境,查看在go目录下misc/vim/readme.txt

    1 mkdir -p $HOME/.vim/ftdetect
    2 mkdir -p $HOME/.vim/syntax
    3 mkdir -p $HOME/.vim/autoload/go
    4 ln -s $GOROOT/misc/vim/ftdetect/gofiletype.vim $HOME/.vim/ftdetect/
    5 ln -s $GOROOT/misc/vim/syntax/go.vim $HOME/.vim/syntax
    6 ln -s $GOROOT/misc/vim/autoload/go/complete.vim $HOME/.vim/autoload/go
    7 echo "syntax on" >> $HOME/.vimrc

    运行后以后用vim 编写go程序就会有语法高亮了,如下图:

  • 相关阅读:
    Nginx配置文件详解
    Mycat概述
    日志切割之Logrotate
    js数组(二)
    js数组(一)
    sass颜色
    scss
    HTML5新属性
    HTML5新元素
    Bootstrap
  • 原文地址:https://www.cnblogs.com/atyou/p/atyou.html
Copyright © 2020-2023  润新知