4 ms·
I've been using vim-go for about one year now. The combination of vim-go, gofmt and YouCompleteMe is all you need for a perfect Go setup. Thanks to Fatih and Va
by sinatra 11y ago
I've been using vim-go for about one year now. The combination of vim-go, gofmt and YouCompleteMe is all you need for a perfect Go setup. Thanks to Fatih and Val!
- grimgrin 11y agogoimports is so dang nice, too. If for some reason you overlooked it on the README: Enable goimports to automatically insert import paths instead of gofmt: let g:go_fmt_command = "goimports"
- sinatra 11y agoYes I do use goimports. Also very useful.
- akavel 11y agoI suggest you try https://github.com/garyburd/go-explorer https://github.com/garyburd/go-explorer too! (From creator of godoc.org.) In short words, it's godoc with hyperlinks (in your vim). I use it both for doc (so I don't have to switch to browser), and for project-wide navigation. :GeDoc net/http --> opens a "gedoc" split :GeDoc fmt Printf --> + jump to specific identifier (note: full TAB-completion) :GeDoc \html_template --> + resolve import alias like: import html_template "html/template" zM --> fold all zo --> unfold current zc --> fold current Ctrl-] --> "follow link under cursor" Ctrl-A --> show all! (i.e. unexported too)
- farslan 11y agoYou're welcome! It's my pleasure. I'm really happy to see people writing Go in a more productive environment.
- vinceyuan 11y agoYouCompleteMe crashes frequently on my mac. I can't find a solution. Does someone here have a solution?
- beefsack 11y agoI switched from YCM to neocomplete[1] a few months ago and haven't looked back, performance is much better. I'm on Arch and never really had crashes with YCM, but if the crashes are performance related it might help. [1] https://github.com/Shougo/neocomplete.vim https://github.com/Shougo/neocomplete.vim
- vinceyuan 11y agoI need to use YouCompleteMe for C++ autocomplete.