From 6e8502d9db631f046997419b28a9af75841f2d04 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Fri, 2 Mar 2018 09:19:48 +0000 Subject: [PATCH] vim/ultisnips: add range-based for loop snippet --- vim/ultisnips/cpp.snippets | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index 383c404..99cfa78 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -44,6 +44,13 @@ 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} -- 2.48.1