title: OmniComplete and Vim issues
body: <p>I'm trying to get omnicomplete to work for C++, and while everything seems to be in order, when I reset my omnifunc to be <code>omnifunc=omni#cpp#complete#Main</code>, the plugin does not recognize the omnifunc, and I get a <code>pattern not found</code> error. I've installed Ctags and put it in <code>.vim/&lt;name_of_dir&gt;</code>, along with adding <code>cpp_src</code> to <code>.vim/tags</code> and running the necessary commands. (see <a href="http://vim.wikia.com/wiki/C++_code_completion" rel="nofollow">here</a> for more info)</p>
  
  <p>The issue is that, no matter what I try, I still get this error. What can I do to get this working? I've tried this before, and the first time has just been a headache which resulted in me not being able to get it to work. This time, however, I'm determined.</p>
  
  <p><strong>VimRc</strong></p>
  
  <pre><code>  1 syntax on
    2 set number
    3 set autoindent
    4 set ft=nasm
    5 set ts=4
    6 set nowrap
    7 set nocp
    8 filetype plugin on
    9 map &lt;C-F12&gt; :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .&lt;CR&gt;
   10 
   11 autocmd FileType cpp set omnifunc=omni#cpp#complete#Main
   12 
   13 " configure tags - add additional tags here or comment out not-used ones
   14 set tags+=~/.vim/tags/cpp
   15 set tags+=~/.vim/tags/gl
   16 set tags+=~/.vim/tags/sdl
   17 " set tags+=~/.vim/tags/qt4
   18 " " build tags of your own project with Ctrl-F12
   19 map &lt;C-F12&gt; :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .&lt;CR&gt;
   20 "
   21 " " OmniCppComplete
   22 let OmniCpp_NamespaceSearch = 1
   23 let OmniCpp_GlobalScopeSearch = 1
   24 let OmniCpp_ShowAccess = 1
   25 let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters
   26 let OmniCpp_MayCompleteDot = 1 " autocomplete after .
   27 let OmniCpp_MayCompleteArrow = 1 " autocomplete after -&gt;
   28 let OmniCpp_MayCompleteScope = 1 " autocomplete after ::
   29 let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"]
   30 " " automatically open and close the popup menu / preview window
   31 au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif
   32 set completeopt=menuone,menu,longest,preview
  </code></pre>
  
  <p>As always, any help is much appreciated.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Posting my Ctags file for others to inspect in case there is an issue with that:</p>
  
  <pre><code>ctags -R --c++-kinds=+p --fields-+iaS --extra=+q .
  
  map &lt;C-F12&gt; :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .&lt;CR&gt;
  </code></pre>