X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/ebb548f189c49691459422d5f23142cf64a0f47a..079c4cc7f0122c10bc93fa70ea50499b0d87f0d4:/vim/ultisnips/cpp.snippets diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index 383c404..5b55701 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -44,12 +44,19 @@ for (${4:int} ${2:i} = 0; $2 < ${1:count}; ${3:++$2}) } endsnippet +snippet fore "range-based for loop" +for (auto ${1:n} : ${2:v}) +{ + ${VISUAL}${0} +} +endsnippet + snippet cplat "Cross platform pre processor split" b #if defined(__GNUC__) && defined(__unix__) ${1} #elif defined(__APPLE__) ${2} -#elif defined(WIN32) +#elif defined(_WIN32) ${3} #endif endsnippet