From: Samir Benmendil Date: Tue, 24 Oct 2017 09:06:29 +0000 (+0100) Subject: vim: pprint cpp snippet X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/4586ba5f3bb85d36e7a4865ce51d9317a90d8ae4 vim: pprint cpp snippet --- 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 #