title: How to create my custom vim snippets?
body: <p>I want to create some snippets when writting c++.<br>
  for example:<br>
  create a file, cpp.snippets.  </p>
  
  <pre><code>priority -1
  snippet exam
  This is an example!
  endsnippet
  </code></pre>
  
  <p>and put it in ~/.vim/my-snippets/snippets/.<br>
  then, add following statement in ~/.vimrc:  </p>
  
  <pre><code>set runtimepath+=~/.vim/my-snippets/
  let g:UltiSnipsSnippetsDir='~/.vim/my-snippets/'
  let g:UltiSnipsSnippetDirectories=["snippets"]
  </code></pre>
  
  <p>But it not work, how can i fix it ?</p>