How to configure ultisnip to override an existing fragment?

I use rails.vim, but would like to redefine one or two fragments using native use of ultisnips.

I created fragments, but since they are already defined by rails.vim, the menu appears at startup. I would like my fragments to overlap the existing one to avoid the menu.

+7
vim ultisnips
source share
1 answer

The solution is to use the priority directive. All fragments by default have priority 0. Therefore, adding this to the beginning of my user fragments solved the problem:

 # top of custom snippets file priority 1 
+8
source share

All Articles