title: Vim Omnicppcomplete - partially working
body: <p>I just installed omnicppcomplete and it is "kindof" working.</p>
  
  <p>The behaviour is realy strange, Omnicppcomplete is working for some files but not for others.</p>
  
  <p>E.g.: 
  If I open file1.cpp omnicppcomplete is working if I push .
  However, if I open file2.cpp omnicppcomplete is not working anymore and I get the error:
  -- Omni complete (^O^N^P) Pattern not found.</p>
  
  <p>Here is my complete .vimrc:</p>
  
  <pre><code>" -------------------------------- PLUGINS ----------------------------"
  "############### ctags
  
  " build tags of your own project
  map &lt;C-c&gt; :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .&lt;CR&gt;
  
  "############### OmniCppComplete
  au BufNewFile,BufRead,BufEnter *.cpp,*.hpp set omnifunc=omni#cpp#complete#Main
  filetype on
  
  " configure tags - add additional tags here or comment out not-used ones
  set tags+=~/.vim/tags/cpp
  set tags+=~/.vim/tags/cuda
  
  let OmniCpp_NamespaceSearch = 1
  let OmniCpp_GlobalScopeSearch = 1
  let OmniCpp_ShowAccess = 1
  let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters
  let OmniCpp_MayCompleteDot = 1 " autocomplete after .
  let OmniCpp_MayCompleteArrow = 1 " autocomplete after -&gt;
  let OmniCpp_MayCompleteScope = 1 " autocomplete after ::
  let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"]
  " automatically open and close the popup menu / preview window
  au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif
  set completeopt=menuone,menu,longest,preview
  </code></pre>
  
  <p>Furthermore, I'm using MacVim 7.3.</p>
  
  <p>Any help is much appreciated.</p>