<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Adam,<br>
<br>
I just wanted to say thanks for all this info you shared. I've been
tied up with other things this week and haven't been working on my GO
development station. However, I'm hoping to get back to it soon. When
I do, I'm going to re look at your email in detail and try to put some
things into practice. I appreciate your offer to help and intend to
take you up on it. I'm sure I'll have lots more questions. 8-)<br>
<br>
Sincerely,<br>
<br>
Ron<br>
<br>
On 9/6/2012 11:21 AM, Adam Jimerson wrote:
<blockquote
cite="mid:CABGpj5An9H51iDic9_44SmM3o6RFrjMKa-kVM-tsm2mwL=C0ZQ@mail.gmail.com"
type="cite">
<div>Hi Ron,</div>
<div><br>
</div>
I played some with the Golangide, it seems to work pretty well, IMO a
lot better than the Go plugin for Eclipse as you don't have all the
bloat of Eclipse (always a plus right? XD). As for setting it up you
can download a precompiled version of it from <a moz-do-not-send="true"
href="http://code.google.com/p/golangide/downloads/list">http://code.google.com/p/golangide/downloads/list</a> installing
is as simple as extracting the tarball and placing it somewhere within
your path (personally I put in in /opt and symlinked the binary to
/usr/bin).
<div><br>
</div>
<div>Nothing can take me from Vim though my fingers are just so use
to it that anything else is "broken", I even made SublimeText 2 more
Vim like just so I could use it.
<div><br>
</div>
<div>As for the Go plugins for Vim that adds syntax highlighting
and indentation guides for Vim, also flags areas where you have extra
whitespace which would get trimmed by "go fmt" anyways. In the version
that shipped with Go1 it also adds new commands to Vim such as:</div>
<div><br>
</div>
<div>:Fmt - Runs "go fmt ." and reloads the file, saves you from
having to exit Vim run it then relaunch Vim.</div>
<div><br>
</div>
<div>:Import/:ImportAs - Adds a new package to your import list
(package importing is Java/Python like) in alphabetical order. Go
standard is all imports should be alphabetical and if they are not go
fmt will rearrange your import order so that they are. The Import As
version allows you to alias a package so you can say "import fmt
package as 'f'" then in your code you can refer to anything from that
package as "f.Println" instead of saying "fmt.Println" etc...</div>
<div><br>
</div>
<div>:Drop - Removes a previously imported package, Go standard
states no unused code and this includes packages</div>
<div><br>
</div>
<div>You also get access to the Go documentation from within Vim by
moving the cursor over the package and calling ":Godoc" this opens
the documentation for the package in a split in Vim so you can keep it
up while you code</div>
<div><br>
</div>
<div>My tip to getting started working with Go in Vim would be:</div>
<div>1. Make use of the Go plugin it is as simple as adding</div>
<div><br>
</div>
<div>
<div> set rtp+=$GOROOT/misc/vim</div>
<div> filetype plugin indent on</div>
<div> syntax on</div>
</div>
<div><br>
</div>
<div>to your ~/.vimrc and restarting vim</div>
<div><br>
</div>
<div>2. Use the "go get" command to install <a moz-do-not-send="true"
href="https://github.com/nsf/gocode">https://github.com/nsf/gocode</a>
setting vim up to use this is fairly simple <a moz-do-not-send="true"
href="https://github.com/nsf/gocode#vim-setup">https://github.com/nsf/gocode#vim-setup</a>.
This will give you the ability to use ommicomple with Go so you can
type "fmt." and press Ctrl + x Ctrl + o and see everything that package
exports.</div>
<div><br>
</div>
<div>Optional:</div>
<div><br>
</div>
<div>1. Install a plugin manager for Vim there are two distinct ones
out there:</div>
<div><a moz-do-not-send="true" href="https://github.com/gmarik/vundle">https://github.com/gmarik/vundle</a></div>
<div><a moz-do-not-send="true"
href="https://github.com/tpope/vim-pathogen">https://github.com/tpope/vim-pathogen</a></div>
<div><br>
</div>
<div>I prefer Vundle as it allows you to control the plugins via your
vimrc file</div>
<div><br>
</div>
<div>2. Install the Syntastic plugin for Vim (<a
moz-do-not-send="true" href="https://github.com/scrooloose/syntastic">https://github.com/scrooloose/syntastic</a>).
This plugin is useful for pretty much any language, what it does is
runs your code through a test compile, syntax check, or execution
redirecting output somewhere like /dev/null and reports (and visually
flags any errors that were found in Vim/GVim. You can also call
:Errors to see a scrollable list of errors in case there are a lot.</div>
<div><br>
</div>
<div>If you have any Go/Vim/Go and Vim questions I am usually more
than willing to help people out.</div>
<div><br>
</div>
<div>PS If you would like I can send you a stripped down version of
my vimrc file to kick start you, I have a lot of brutal things in my
config that could scare a Vim beginner such as not
allowing movement via the arrow key only via h, j, k, l keys and such</div>
<div><br>
<div class="gmail_quote">On Thu, Sep 6, 2012 at 9:26 AM, Ron Frazier
(ALE) <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:atllinuxenthinfo@techstarship.com" target="_blank">atllinuxenthinfo@techstarship.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div>Hi Adam,<br>
<br>
Thanks for the note. I looked at the links. This brings up some more
questions. The IDE you mentioned looks pretty cool. Have you used it?
Is there a good overview of how to set it up? In terms of the VIM
plugin, etc., what exactly does that do? I'm only minimally familiar
with VIM at this point. How would I learn how to set that up in VIM and
GVIM?<br>
<br>
Sincerely,<br>
<br>
Ron
<div>
<div class="h5"><br>
<br>
<br>
<div class="gmail_quote">Adam Jimerson <<a moz-do-not-send="true"
href="mailto:vendion@gmail.com" target="_blank">vendion@gmail.com</a>>
wrote:
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If
you need/want a full IDE there is another option other than Zeus: <a
moz-do-not-send="true" href="http://code.google.com/p/golangide/"
target="_blank">http://code.google.com/p/golangide/</a>
<div>As for the Eclipse plug-in I can't personally say any thing
about it as I don't use Eclipse but it seems to work.<br>
<div><br>
</div>
<div>If you would prefer to use a text editor Go
has official plugins for Vim [0] and Emacs [1], there is also a plugin
for Sublime Text 2 [2] if you like that. All of these require a 3rd
party program to allow for auto-complete [3] this is useful for dealing
with packages and methods. </div>
<div><br>
</div>
<div>[0]: <a moz-do-not-send="true"
href="http://code.google.com/p/go/source/browse#hg%2Fmisc%2Fvim"
target="_blank">http://code.google.com/p/go/source/browse#hg%2Fmisc%2Fvim</a></div>
<div>[1]: <a moz-do-not-send="true"
href="http://code.google.com/p/go/source/browse#hg%2Fmisc%2Femacs"
target="_blank">http://code.google.com/p/go/source/browse#hg%2Fmisc%2Femacs</a></div>
<div>[2]: <a moz-do-not-send="true"
href="https://github.com/DisposaBoy/GoSublime" target="_blank">https://github.com/DisposaBoy/GoSublime</a></div>
<div>[3]: <a moz-do-not-send="true"
href="https://github.com/nsf/gocode" target="_blank">https://github.com/nsf/gocode</a></div>
<div><br>
</div>
<div><br>
</div>
<div>
<div class="gmail_quote">On Fri, Aug 31, 2012 at 10:50 PM, Ron
Frazier (ALE) <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:atllinuxenthinfo@techstarship.com" target="_blank">atllinuxenthinfo@techstarship.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi
guys,<br>
<br>
Got a question about go programming. I'm planning to start learning the
GO programming language shortly after Leam Hall convinced me to do that
instead of Java. I'm wanting to use an IDE, and am looking at various
possibilities. I know you can program with just a text editor, but I
want something which will allow me to manage full projects, thus the
IDE.<br>
<br>
The only real things I've found that look comprehensive and full
featured are Zeus, a Windows program but can run under Wine for ($90)
and an Eclipse plugin ($0). The Zeus system looks really impressive.
I'm told that Eclipse is very powerful too but that it has a steep
learning curve. It appears that the Eclipse plugin is very early in
development.<br>
<br>
<a moz-do-not-send="true"
href="http://www.zeusedit.com/index.html" target="_blank">http://www.zeusedit.com/index.html</a><br>
<a moz-do-not-send="true" href="http://www.zeusedit.com/go.html"
target="_blank">http://www.zeusedit.com/go.html</a><br>
<a moz-do-not-send="true"
href="http://www.zeusedit.com/lookmain.html" target="_blank">http://www.zeusedit.com/lookmain.html</a><br>
<br>
Any thoughts?<br>
<br>
Thanks in advance.<br>
<br>
Sincerely,<br>
<br>
Ron<br>
<br>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
(To whom it may concern. My email address has changed. Replying to former
messages prior to 03/31/12 with my personal address will go to the wrong
address. Please send all personal correspondence to the new address.)
(PS - If you email me and don't get a quick response, you might want to
call on the phone. I get about 300 emails per day from alternate energy
mailing lists and such. I don't always see new email messages very quickly.)
Ron Frazier
770-205-9422 (O) Leave a message.
linuxdude AT techstarship.com
</pre>
</body>
</html>