<p>Currently using Intellij Idea as my IDE, working really well but I'd like to transition into Emacs or Vim as I get tired of using my mouse/trackpad. I'd prefer a fully customizable and keyboard based solution which is why I've come down to these two. Now I'm just not sure which one has better go support. I've been using vim-go and it seems really nice but what would everyone else recommend?</p>
<p>please no religious wars, I'd just like to know which has better support specifically for golang currently.</p>
<hr/>**评论:**<br/><br/>can-opener: <pre><p>I personally find <a href="https://github.com/fatih/vim-go" rel="nofollow">vim-go</a> very convenient (link for passing by users).</p>
<p>As for going from IDEA to vim or emacs for coding in Go, I'm 100% convinced it's a good idea. Even if you're not really much more productive (you probably spend more time thinking than typing), you'll feel less permanent frustration against your IDE. To start with vim, here's a good reading: <a href="http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/" rel="nofollow">http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/</a></p>
<p>As for entering a religious war, I unfortunately can't, I don't have enough expertise in emacs to deride it, I can't even try to pretend vim is better than emacs ;)</p></pre>dericofilho: <pre><p>acme</p></pre>can-opener: <pre><p>Just curious: Are you serious ?</p></pre>dericofilho: <pre><p>Yes. Tbh, it took me a while to produce all the necessary scripts and plumber configuration. But right now I am much faster using the mouse (not trackpad) than using keyboard. Frequently I see vim people going back and forward to open a file, and I think "with Acme, I'd be there already)". And nowdays, using mouse in ST or any other IDE feels really weird.</p></pre>marcelvfx: <pre><p>OP Quote "I get tired of using my mouse/trackpad."</p></pre>dericofilho: <pre><p>I know - but in ACME the experience is very different, enough to not get tired anymore of mouse.</p></pre>maedo: <pre><p>I have no problem with you setting down with vim-go, but if you want to give Emacs a try, and don't know where to start, see if starting from <a href="https://github.com/suntong001/emacs.d" rel="nofollow">https://github.com/suntong001/emacs.d</a> will make it a bit easier for you. It is for me, because it is using the modern Emacs approach, and its hierarchy and "plug-in" arrangement is much more manageable and beneficial than a single humongous init file. The go setting is at <a href="https://github.com/suntong001/emacs.d/blob/master/lisp/init-code0p_go.el" rel="nofollow">https://github.com/suntong001/emacs.d/blob/master/lisp/init-code0p_go.el</a>, HTH</p></pre>nhooyr: <pre><p>thanks, will look into it.</p></pre>jan1024188: <pre><p>NeoVim + vim-go</p></pre>can-opener: <pre><p>Are there any real advantage in using neo-vim over vim today ?</p></pre>nhooyr: <pre><p>terminal inside of vim :D</p>
<p>so if you do :GoRun with vim-go inside of it, it doesn't take you outside.</p></pre>can-opener: <pre><p>Hum. OK, thanks for the reply. I'll probably test it but in practice I don't really use the GoRun for real applications.</p></pre>nhooyr: <pre><p>just tried it, feels really good, might go with this, thanks!</p></pre>nhooyr: <pre><p>slight problem though. Whenever I do :GoRun on a chat server I made, then I try to close it with C-C it closes the terminal but the server remains open o.O so I can't run it again until I close it because of the used port.</p>
<p><a href="https://github.com/neovim/neovim/issues/1234" rel="nofollow">https://github.com/neovim/neovim/issues/1234</a></p>
<p>its a filed issue, welp i guess i'll use neovim when its fully released. Looks good so far otherwise.</p></pre>google_you: <pre><p>geany</p></pre>Shammyhealz: <pre><p>I use Sublime Text with Vintageous (vim emulation). It's the best of both worlds for me. You get all the features of a GUI editor with the ability to rarely use your mouse. Vim would come second for me, though I've never honestly worked with emacs much.</p></pre>nhooyr: <pre><p>just checked and there seems to be one for intellij idea too, thanks, definitely gonna check it out. Might not even need to switch.</p></pre>jahayhurst: <pre><p>Isn't it Vintage?</p>
<p>Also: sublime + vintage SO HARD. I use vim on servers a lot, but when I really want to go into something, I am finding I copy it into sublime more and more.</p></pre>Shammyhealz: <pre><p>Vintage is the Sublime-supplied vim keybindings emulator. Vintageous is a plugin that is little more complete and closer to vim, but if all you want is insert/escape mode and navigation using hjkl then Vintage mode will do it.</p></pre>jahayhurst: <pre><p>o.O Looks like I have a new plugin to try :-)</p></pre>rock_neurotiko: <pre><p>I use emacs with some configuration for go-mode and I'm really happy, but learning emacs is not as easy as sublime or an IDE.</p>
<p>You shoult try it, you can find good go configurations in google :)</p></pre>sergiusens: <pre><p>I've just switched from vim with Steve Francia's nice pluggable vim configuration to atom with go-plus and </p></pre>nhooyr: <pre><p>and ?</p></pre>sergiusens: <pre><p>I haven't used a GUI in a while and so far I like atom. There are a bunch of nice plug ins too.</p>
<p>It's not that I disliked my vim setup but more so that changing things was a chore at times.</p></pre>borring: <pre><p>With Carlos Castillo's vim-mode, you can embed neovim editing into Atom. Pretty cool. I assume all your vimrc stuff will also work.</p>
<p><a href="https://github.com/carlosdcastillo/vim-mode" rel="nofollow">https://github.com/carlosdcastillo/vim-mode</a><br/>
<a href="https://www.youtube.com/watch?v=FTInd3H7Zec&feature=youtu.be" rel="nofollow">https://www.youtube.com/watch?v=FTInd3H7Zec&feature=youtu.be</a></p></pre>lhxtx: <pre><p>I prefer vim-go. But Emacs go-mode is just fine too. </p>
<p>I think the most important thing is to get out of the IDE and into Emacs or Vim; doesn't matter which one. I use both. (Vim and Emacs with evil-mode because I love modal editing). </p></pre>matttproud: <pre><p>Emacs with <em>go-mode</em> as described by Dominik Honnef: <a href="http://dominik.honnef.co/posts/2013/03/writing_go_in_emacs/" rel="nofollow">Part I</a> and <a href="http://dominik.honnef.co/posts/2013/08/writing_go_in_emacs__cont__/" rel="nofollow">Part II</a>. It works like a charm.</p>
<p>Periodically even I use <a href="http://acme.cat-v.org/" rel="nofollow">Acme</a> when I get annoyed with Emacs Lisp, since the <a href="http://research.swtch.com/acme.pdf" rel="nofollow">Plumber</a> is incredibly straight forward.</p></pre>dilap: <pre><p>I use emacs, but in a pretty simple way for Go, with a binding to run goimports and a binding to run godef, and the default go-mode for syntax highlighting. It works well.</p>
<p>(In general emacs is a slow and bug-ridden and kind of sucks, but I'm addicted to its flexibility. I'm not sure I'd recommend using it if you weren't already addicted...on the other hand there aren't alternatives if you want something that you can run in a terminal.)</p></pre>thomasfr: <pre><p>Try both editors and pick the one that to you seems fun to use.. I am an Emacs user myself but both should work just fine.</p></pre>dlsniper: <pre><p>IntelliJ is usable without mouse. Seriously. It even has a vim plugin to emulate vim (and it's quite impressive). Just do a bit of research ;-) </p></pre>xplane80: <pre><p>Sublime Text 3 with GoSublime is very good and it offers many IDE-like features. Sublime Text 3 will be a much easy program to learn compared to Emacs or Vim and virtually as powerful.</p>
<p>If you want Vim-like shortcuts and controls, <code>Vintageous</code> or the built-in <code>Vintage</code> plugin are very both very good.</p>
<p>There is also <code>sublemacspro</code>which adds Emacs-like shortcuts.</p>
<p>At the end of the day, try one of them and see if you like it. The best way of explaining it for me is this:</p>
<ul>
<li>Emacs = Like learning the Piano (hold down many keys)</li>
<li>Vim = Like learning the Guitar (arpeggio/pluck keys)<br/></li>
<li>Sublime = Like learning new features to Notepad/TextEdit/etc.</li>
</ul>
<p>P.S. Emacs is still slow for many things, Eight Megabytes And Constantly Swapping is still pretty true but it's more like Eight Hundred now.</p></pre>eviltofu: <pre><p>Maybe pick an editor which you can get the most help on? If there are lots of emacs users in your environment, you can get more help from them.</p></pre>Raannndy: <pre><p>Not specific to the go language, but Vim is going to be a more modern approach. No offense to maedo, but the only people I know who use Emacs are 50+. </p>
<p>Go home grandpa. Only cool kids are allowed here.</p></pre>can-opener: <pre><p>vim is the new cool editor ?</p>
<p>I have the feeling we might be all 40+ in here...</p></pre>Raannndy: <pre><p>oh man, now I feel like a dick. Sorry all!</p></pre>hayzeus: <pre><p>I'm 50+ and use vim. Cause I was using vi when I was 24. That shit is old, son.</p></pre>thomasfr: <pre><p>It's my 35th birthday today and emacs is running just fine even if I don't have all those additional experience points :)</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传