title: Vim snipMate installed with pathogen not triggering
body: <p>Sorry I searched for answer to the above question but none matched my exact situation. I am a beginner at vim and trying to set it up for C++ programming. I am using Xubuntu 14.04 and installed vim using sudo-apt and I also installed YouCompleteMe plugin using the following </p>
  
  <pre><code>apt-get install vim-youcompleteme
  apt-get install vim-addon-manager
  vam install youcompleteme
  </code></pre>
  
  <p>And YouCompleteMe works perfectly and then I installed NERDTree by simply downloading the zip file at the link <a href="http://www.vim.org/scripts/script.php?script_id=1658" rel="nofollow">http://www.vim.org/scripts/script.php?script_id=1658</a> and extracting it in ~/.vim folder and NERDTree also works fine. Then I installed pathogen for vim using the instructions given at the link <a href="https://github.com/tpope/vim-pathogen" rel="nofollow">https://github.com/tpope/vim-pathogen</a> and my ~/.vimrc looks like</p>
  
  <pre><code>" All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by
  " the call to :runtime you can find below.  If you wish to change any of those
  " settings, you should do it in this file (/etc/vim/vimrc), since debian.vim
  " will be overwritten everytime an upgrade of the vim packages is performed.
  " It is recommended to make changes after sourcing debian.vim since it alters
  " the value of the 'compatible' option.
  
  " This line should not be removed as it ensures that various options are
  " properly set to work with the Vim-related packages available in Debian.
  runtime! debian.vim
  
  " Uncomment the next line to make Vim more Vi-compatible
  " NOTE: debian.vim sets 'nocompatible'.  Setting 'compatible' changes numerous
  " options, so any other options should be set AFTER setting 'compatible'.
  "set compatible
  
  " Vim5 and later versions support syntax highlighting. Uncommenting the next
  " line enables syntax highlighting by default.
  if has("syntax")
    syntax on
  endif
  
  execute pathogen#infect()
  
  " If using a dark background within the editing area and syntax highlighting
  " turn on this option as well
  set background=dark
  
  " Uncomment the following to have Vim jump to the last position when
  " reopening a file
  "if has("autocmd")
  "  au BufReadPost * if line("'\"") &gt; 1 &amp;&amp; line("'\"") &lt;= line("$") | exe "normal! g'\"" | endif
  "endif
  
  " Uncomment the following to have Vim load indentation rules and plugins
  " according to the detected filetype.
  "if has("autocmd")
  "  filetype plugin indent on
  "endif
  
  " The following are commented out as they cause vim to behave a lot
  " differently from regular Vi. They are highly recommended though.
  set showcmd     " Show (partial) command in status line.
  set showmatch       " Show matching brackets.
  set ignorecase      " Do case insensitive matching
  set smartcase       " Do smart case matching
  set incsearch       " Incremental search
  set autowrite       " Automatically save before commands like :next and :make
  set hidden      " Hide buffers when they are abandoned
  set mouse=a     " Enable mouse usage (all modes)
  set exrc
  
  " Source a global configuration file if available
  if filereadable("/etc/vim/vimrc.local")
    source /etc/vim/vimrc.local
  endif
  </code></pre>
  
  <p>Then I installed SnipMate using the instruction for Pathogen given at vim-snipmate repository by Garbas (Sorry I couldn't post more than two links) And it looks like the snipmate plugin is active in vim because when I do <code>:imap</code> I get the following output</p>
  
  <pre><code>i  &lt;Nul&gt;       * &lt;C-X&gt;&lt;C-O&gt;&lt;C-P&gt;
  i  &lt;Up&gt;        * pumvisible() ? "\&lt;C-P&gt;" : "\&lt;Up&gt;"
  i  &lt;Down&gt;      * pumvisible() ? "\&lt;C-N&gt;" : "\&lt;Down&gt;"
  i  &lt;S-Tab&gt;     * pumvisible() ? "\&lt;C-P&gt;" : "\&lt;S-Tab&gt;"
  i  &lt;Plug&gt;snipMateShow * &lt;C-R&gt;=snipMate#ShowAvailableSnips()&lt;CR&gt;
  i  &lt;Plug&gt;snipMateBack * &lt;C-R&gt;=snipMate#BackwardsSnippet()&lt;CR&gt;
  i  &lt;Plug&gt;snipMateTrigger * &lt;C-R&gt;=snipMate#TriggerSnippet(1)&lt;CR&gt;
  i  &lt;Plug&gt;snipMateNextOrTrigger * &lt;C-R&gt;=snipMate#TriggerSnippet()&lt;CR&gt;
  i  &lt;Tab&gt;       * pumvisible() ? "\&lt;C-N&gt;" : "\&lt;Tab&gt;"
  i  &lt;C-R&gt;&lt;Tab&gt;    &lt;Plug&gt;snipMateShow
  Press ENTER or type command to continue
  </code></pre>
  
  <p>So according to the above output the snipmate should trigger for me when I enter the shortcut and press Ctrl+R but it doesn't work. However when I press Ctrl+R+Tab I see a list of snippets but they don't work when I select any one of them. For example cpp.snippets in <code>/home/username/.vim/bundle/vim-snippets/snippets/</code> has an entry like </p>
  
  <pre><code># for i
  snippet fori
      for (int ${2:i} = 0; $2 &lt; ${1:count}; $2${3:++}) {
          ${4}
      }
  </code></pre>
  
  <p>and when I press Ctrl+R+Tab I see a list in which I can see <code>fori</code> but when I select <code>fori</code> from the list it just appears as <strong>fori</strong> verbatim in my vim file. I am really not sure what else to try to make it work. I would really appreciate any help to get SnipMate working with vim.</p>