X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/8cb1caba089a027d9adc17cf971cd8e3109539e2..d7d49311e213282c381e9187fd0fbc2d477fc047:/vim/ultisnips/cpp.snippets diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index 0113878..666c965 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -1,6 +1,9 @@ # replace snippets of parent ft priority 1 +# disable horrible one word snippets +clearsnippets pri pro pub fr mu + snippet inc "#include <>" b #include <${1:iostream}> endsnippet @@ -52,6 +55,11 @@ ${3} #endif endsnippet +snippet pprint "Pretty print expression" b +#define PPRINT(x) std::cout << #x " = " << (x) << '\n'; +PPRINT(${VISUAL}${0}) +endsnippet + # # Qt #