overwriting snippets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UltiSnips |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
I'm trying to overwrite bundled snippets using the "!" option. This does not work as descriped in the documentation in most cases. Adding a new modified snippet with the same trigger and "!" option only leads on triggering to the list where both versions are listed.
The only exception I found so far is the following:
I can overwrite the bundled snippets defined in texmath.snippets.
For example:
snippet eq "Equation" !b
\begin{equation}
\label{eq:$1}
$2
\end{equation}
$0
endsnippet
in my local tex.snippets overwrites the bundled version from texmath.snippets
snippet eq "Equation" b
\begin{equation}
$0
\end{equation}
endsnippet
Since I find most bundled useful I don't want to disable them all.
:py import sys; print sys.version
2.7.2 (default, Aug 19 2011, 20:41:43) [GCC]
UltiSnips searches in 'runtimepath' for snippet directories but traverses ReverseSearchPa th="1"
'runtimepath' in reverse order (last item first). If you would like to have
UltiSnips traverse 'runtimepath' in the standard order, add this to your vimrc
file: >
let g:UltiSnipsDont
have you tried that? It depends if you use vundle, pathogen or something else what will work for you.