今天费了好大劲搞定了mac 下 vim golang 的开发环境,mark 一下
基本参照 http://studygolang.com/articl...
其中有几点需要注意一下

brew install vimexport PATH=$PATH:“your vim bin path”pip install futurepip install requestsbrew install cmake./install.py --gocode-completer
" YCM settings
let g:ycm_key_list_select_completion = ['', '']
let g:ycm_key_list_previous_completion = ['']
let g:ycm_key_invoke_completion = ''

" UltiSnips setting
let g:UltiSnipsExpandTrigger="<Tab>"
let g:UltiSnipsJumpForwardTrigger="<c-j>"
let g:UltiSnipsJumpBackwardTrigger="<c-k>"
import  import (...)
import (
    "package"
)

至此,golang 环境配置完毕

最后,关于mac下使用gdb调试程序,请参考
http://studygolang.com/articl...
http://www.time-track.cn/inst...