From: Samir Benmendil Date: Sat, 1 May 2021 14:00:57 +0000 (+0100) Subject: vim/cpp: remove the `for` snippet and replace with fori X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/05c504ab8c9c996b9ddf483ab47c8513948c1342 vim/cpp: remove the `for` snippet and replace with fori I don't exactly remember why it was anoying me, there are other more specific for snippets, i.e. fori, fore, etc. --- diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index 5530263..5ffbe51 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -46,7 +46,8 @@ ${4:void} ${1:`!p snip.rv = snip.basename or "name"`}::${2:memberFunction}(${3}) } endsnippet -snippet for "for loop (for)" +clearsnippets for +snippet fori "for loop (for)" b for (${4:size_t} ${2:i} = 0; $2 < ${1:count}; ${3:++$2}) { ${VISUAL}${0}