I use rails.vim but would like to override one or two snippets with my own using ultisnips.
I've created the snippets but since they're already defined by rails.vim a menu now appears when triggered. I'd like my snippets to override the existing one to avoid the menu.
If you are using the sirver/ultisnips plugin (UltiSnips) the correct way to do this is simply run the :UltiSnipsEdit command which opens up a custom snippets file for the current language / filetype. Thank you! This is the most sensible answer.
The solution is to use priority
directive. All snippets default to a priority of 0. Therefore, adding this to the top of my custom snippets solved the issue:
# top of custom snippets file
priority 1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With