title: Get Vimwiki working with SnipMate (the vim plugins)
body: <p>My issue is that <code>&lt;Tab&gt;</code> completion for SnipMate does not work when I'm in a vimwiki file. I am testing by typing <code>APACHE&lt;Tab&gt;</code> in insert mode, but I don't get the snippet as I do when I'm in, say, <code>.vimrc</code>.</p>
  
  <p>And even though <code>i_&lt;Tab&gt;</code> doesn't work in a vimwikie file, <code>i_&lt;C-R&gt;&lt;Tab&gt;</code> does. I get a list of available snippets. Strange.</p>
  
  <p>To make it stranger (well, to me at least), here's the partial output of <code>:imap</code> in a vimwiki file:</p>
  
  <pre><code>i  &lt;Tab&gt;       * &lt;C-G&gt;u&lt;C-R&gt;=snipMate#TriggerSnippet()&lt;CR&gt;
  i  &lt;C-R&gt;&lt;Tab&gt;  * &lt;C-R&gt;=snipMate#ShowAvailableSnips()&lt;CR&gt;
  </code></pre>
  
  <p>I think these are correct, and in other files where <code>&lt;Tab&gt;</code> completion does work, the mappings are the same.</p>
  
  <p>oh, and in case you are thinking to suggest putting <code>let g:vimwiki_table_auto_fmt = 0</code> in my <code>.vimrc</code> as suggested in <a href="http://code.google.com/p/vimwiki/wiki/ChangeLog" rel="nofollow">http://code.google.com/p/vimwiki/wiki/ChangeLog</a>, I tried it and it doesn't solve my problem. That's the only suggestion I found in my search, so that's why I'm here.</p>
  
  <p>I don't know how much of my <code>.vimrc</code> you would want, so I'm just going to give you the ones I think are relevant to keep this question short:</p>
  
  <pre><code>" Vundle: The plugin manager for vim.                                        
      set runtimepath+=~/.vim/bundle/vundle/                                   
      call vundle#rc()                                                         
      Bundle 'gmarik/vundle'                                                   
  " SnipMate: TextMate snippets for vim.                                       
      Bundle "MarcWeber/vim-addon-mw-utils"                                    
      Bundle "tomtom/tlib_vim"                                                 
      Bundle "honza/snipmate-snippets"                                         
      Bundle "garbas/vim-snipmate"                                             
  " Vimwiki: A personal wiki for vim.                                          
      Bundle 'vim-scripts/vimwiki'                                             
      let g:vimwiki_hl_headers = 1                                             
      let g:vimwiki_hl_cb_checked = 1                                          
      let g:vimwiki_folding = 1                                                
      let g:vimwiki_fold_lists = 1                                             
      let s:vimwiki = {}                                                       
      let s:vimwiki.path             = '~/Vimwiki/wiki'                        
      let s:vimwiki.path_html        = '~/Vimwiki/html'                        
      let s:vimwiki.ext              = '.md'                                   
      let s:vimwiki.syntax           = 'markdown'                              
      let s:vimwiki.maxhi            = 1                                       
      let s:vimwiki.diary_rel_path   = 'Journal/'                              
      let s:vimwiki.diary_index      = 'index'                                 
      let s:vimwiki.diary_header     = 'Journal'                               
      let s:vimwiki.diary_sort       = 'asc'                                   
      let g:vimwiki_list = [s:vimwiki]
  </code></pre>
  
  <p>Thanks</p>
  
  <p>Edit:</p>
  
  <p>I don't know why I forgot about this while writing the above. The output of <code>:imap</code> above is incomplete. It also shows:</p>
  
  <pre><code>i  &lt;Tab&gt;       *@vimwiki#tbl#kbd_tab()
  </code></pre>
  
  <p>Regardless of the value of <code>g:vimwiki_table_auto_fmt</code>. It's probably the source of my problem.. and if so I'd like to get rid of it from <code>.vimrc</code> somehow.</p>