'!' seems not to override the default 'ns' snippet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UltiSnips |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
My understanding is that the '!' option instructs UltiSnips to override all previously defined snippets with the same abbreviation. However, when I tried to override the default 'ns' snippet, I got prompted to choose between mine and the default. Instead, I want it to choose mine outright.
The output of :py import sys; print sys.version:
2.7.3 (default, Aug 1 2012, 05:25:23)
[GCC 4.6.3]
Snippet definition that makes problems:
https:/
Your input (keystroke for keystroke):
ns<c-j>
(NOTE: <c-j> is my keystroke to expand a snippet.)
The expected output:
I expect my snippet to be expanded immediately.
The actual output:
The following prompt:
1: (ns) "namespace"
2: (ns) "namespace .. (namespace)"
Type number and <Enter> or click with mouse (empty cancels):
NOTE: the first option is my snippet; the second is the default one. I want it to use the first without prompting.
description: | updated |
Changed in ultisnips: | |
status: | Invalid → Fix Committed |
https:/ /github. com/SirVer/ ultisnips/ blob/master/ doc/UltiSnips. txt#L333
the default is to traverse your search path from back to front - this is because the order directorys are added are different for vundle than for pathogen and pathogen was more popular back then. Now we are stuck with an odd default, sorry for that.