Commits

Aram Hăvărneanu  committed aada17e Merge

merge upstream

Go 1.2.

  • Participants
  • Parent commits 778fbe5, bddf2a7
  • Branches parallel

Comments (0)

Files changed (3)

File doc/install.html

 export PATH=$PATH:/usr/local/go/bin
 </pre>
 
-<h4 id="tarball_non_standard">Installing to a custom location</h3>
+<h4 id="tarball_non_standard">Installing to a custom location</h4>
 
 <p>
 The Go binary distributions assume they will be installed in
 <code>/usr/local/go</code> (or <code>c:\Go</code> under Windows),
-but it is possible to install the Go tools to a different location. 
+but it is possible to install the Go tools to a different location.
 In this case you must set the <code>GOROOT</code> environment variable
 to point to the directory in which it was installed.
 </p>
 </p>
 
 <p>
-The <a href="/doc/code.html">How to Write Go Code</a> document 
+The <a href="/doc/code.html">How to Write Go Code</a> document
 provides <b>essential setup instructions</b> for using the Go tools.
 </p>
 

File misc/vim/ftplugin/go/fmt.vim

         endif
         undo
         if !empty(errors)
-            call setloclist(0, errors, 'r')
+            call setqflist(errors, 'r')
         endif
         echohl Error | echomsg "Gofmt returned error" | echohl None
     endif

File misc/vim/readme.txt

 If you want to select fewer plugins, use the instructions in the rest of
 this file.
 
+A popular configuration is to gofmt Go source files when they are saved.
+To do that, add this line to the end of your $HOME/.vimrc.
+
+  autocmd FileType go autocmd BufWritePre <buffer> Fmt
+
 
 Vim syntax highlighting
 -----------------------