From: Samir Benmendil Date: Wed, 14 Oct 2015 11:50:37 +0000 (+0100) Subject: vim: add crossplatform snippet X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/638014253e8e4a38a61dfc9b05d3b3a2c1d8eb9a?ds=inline vim: add crossplatform snippet --- diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index 3a3b30b..a1b2578 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -34,6 +34,16 @@ for (${4:int} ${2:i} = 0; $2 < ${1:count}; ${3:++$2}) } endsnippet +snippet cplat "Cross platform pre processor split" b +#if defined(__GNUC__) && defined(__unix__) +${1} +#elif defined(__APPLE__) +${2} +#elif defined(WIN32) +${3} +#endif +endsnippet + # # Qt #