X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/2f3ca06a7ff40f2801123ed1d605ac092f5814ae..4586ba5f3bb85d36e7a4865ce51d9317a90d8ae4:/vim/ultisnips/cpp.snippets 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 #