X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/8cb1caba089a027d9adc17cf971cd8e3109539e2..4f1cc137755e29eacf648f9ab03ad4be74f49d73:/vim/ultisnips/cpp.snippets?ds=sidebyside diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index 0113878..329547f 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -52,6 +52,11 @@ ${3} #endif endsnippet +snippet pprint "Pretty print expression" b +#define PPRINT(x) std::cout << #x " = " << (x) << '\n'; +PPRINT(${VISUAL}${0}) +endsnippet + # # Qt #