From: Samir Benmendil Date: Fri, 13 Jan 2023 23:51:01 +0000 (+0000) Subject: vim/snippets: disable some horrible c/cpp snippets X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/188b74675bc1baefa691d99fb3a6a642c2158397 vim/snippets: disable some horrible c/cpp snippets --- diff --git a/vim/ultisnips/c.snippets b/vim/ultisnips/c.snippets index 62824bc..4517467 100644 --- a/vim/ultisnips/c.snippets +++ b/vim/ultisnips/c.snippets @@ -1,3 +1,6 @@ +# disable horrible one word snippets +clearsnippets pri pro pub fr mu t pr + snippet once "Include header once only guard" #ifndef ${1:`!p snip.rv = re.sub(r'[^A-Za-z0-9]+','_', snip.fn).upper()`} #define $1 diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index 4213966..46b1480 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -2,7 +2,7 @@ priority 1 # disable horrible one word snippets -clearsnippets pri pro pub fr mu t +clearsnippets pri pro pub fr mu t pr clearsnippets set