]> git.rmz.io Git - dotfiles.git/commitdiff
vim/cpp: remove the `for` snippet and replace with fori
authorSamir Benmendil <me@rmz.io>
Sat, 1 May 2021 14:00:57 +0000 (15:00 +0100)
committerSamir Benmendil <me@rmz.io>
Sat, 1 May 2021 14:25:48 +0000 (15:25 +0100)
I don't exactly remember why it was anoying me, there are other more
specific for snippets, i.e. fori, fore, etc.

vim/ultisnips/cpp.snippets

index 5530263852979d17c32701eda3080674c3ec67c4..5ffbe5159c9c4f225020395d233552274bb7ef08 100644 (file)
@@ -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}