title: Cannot auto format go (golang) code in vim
body: <p>I was having a problem with the following command:</p>
  
  <p><code>autocmd FileType go autocmd BufWritePre &lt;buffer&gt; Fmt</code></p>
  
  <p>its suppose to format my code code automatically by putting it at the end of my <code>.vimrc</code> file.</p>
  
  <p>This is how my .vimrc file lookgs like:</p>
  
  <pre><code>set nocompatible              " be iMproved, required
  filetype off                  " required
  
  " set the runtime path to include Vundle and initialize
  set rtp+=~/.vim/bundle/Vundle.vim
  call vundle#begin()
  " alternatively, pass a path where Vundle should install plugins
  "call vundle#begin('~/some/path/here')
  
  " let Vundle manage Vundle, required
  Plugin 'gmarik/Vundle.vim'
  
  " Keep Plugin commands between vundle#begin/end.
  " plugin on GitHub repo
  Plugin 'tpope/vim-fugitive'
  " plugin from http://vim-scripts.org/vim/scripts.html
  Plugin 'L9'
  " Git plugin not hosted on GitHub
  Plugin 'git://git.wincent.com/command-t.git'
  " git repos on your local machine (i.e. when working on your own plugin)
  Plugin 'file:///home/gmarik/path/to/plugin'
  " The sparkup vim script is in a subdirectory of this repo called vim.
  " Pass the path to set the runtimepath properly.
  Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
  " Avoid a name conflict with L9
  Plugin 'user/L9', {'name': 'newL9'}
  Plugin 'commentary.vim'
  Plugin 'go.vim'
  
  " All of your Plugins must be added before the following line
  call vundle#end()            " required
  filetype plugin indent on    " required
  
  syntax on
  filetype plugin on
  
  filetype indent on
  
  "autocmd FileType go compiler go
  autocmd FileType go autocmd BufWritePre &lt;buffer&gt; Fmt
  </code></pre>
  
  <p>However, vim does throw me an error saying:</p>
  
  <p><code>Error Detected while processing BufWrite Auto commands for "&lt;buffer=1&gt;"</code></p>
  
  <p><code>E492: Not an editor command: Fmt</code></p>
  
  <p>I have no idea whats wrong, specially because it was working earlier.</p>