Ultisnips: How do I disable sets of completions?

Created on 27 Feb 2016  路  8Comments  路  Source: SirVer/ultisnips

Hi.

I'm using the vim-snippets plugin and it contains quite a lot of (to me) unneeded JavaScript snippet sets. Can I disable some sets like the jquery ones?

I opened a ticket for this in that repo but was directed here.

pending feedback user question

All 8 comments

@Industrial: Either create file with corresponding name with clearsnippets directive in it or copy-and-paste only snippets that you want to use into ~/.vim/UltiSnips/ directory.

I'm having a similar issue with vim-snippets, but it's the _snipMate_ snippets I'd like to turn off/override (the snipMate Python snippets are mostly low-quality versions of the UltiSnips ones).

clearsnippets isn't valid in snipMate snippets and adding a file with the same name doesn't appear to work.

Am I missing something?

@deanishe: Just disable snipMate completely by adding g:UltiSnipsEnableSnipMate = 0 to your .vimrc;

Thanks for the speedy reply.

I don't want to disable _all_ the snipMate snippets, just the Python ones. Is that possible?

@deanishe: You can try to disable/enable snipMate in realtime by using autocommand for specific filetype, but I'm not sure if it works or not.

@seletskiy: Thanks very much. I'll give that a try.

Maybe it would be nice to be able to ignore snipmate snippets if there is a ultisnips version for the file.

Closing as answered.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Alex-Canales picture Alex-Canales  路  4Comments

chiphogg picture chiphogg  路  3Comments

raorm picture raorm  路  4Comments

vanabel picture vanabel  路  7Comments

ahmedelgabri picture ahmedelgabri  路  5Comments