]> git.rmz.io Git - dotfiles.git/blobdiff - vim/ultisnips/cpp.snippets
vim: highlight non-breakable-spaces
[dotfiles.git] / vim / ultisnips / cpp.snippets
index 1142bf6bf2fdd9ab044b4d191945ce66b0e9028b..46b1480f466f2eca58fe0ea5b9dd4557009e4351 100644 (file)
@@ -2,7 +2,9 @@
 priority 1
 
 # disable horrible one word snippets
-clearsnippets pri pro pub fr mu t
+clearsnippets pri pro pub fr mu t pr
+
+clearsnippets set
 
 snippet inc "#include <>" b
 #include <${1:iostream}>
@@ -46,7 +48,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}
@@ -161,3 +164,10 @@ ${VISUAL}${0}
 #pragma GCC diagnostic pop
 endsnippet
 
+snippet FPP "FPP Copyright" b
+// Copyright © Focal Point Positioning Limited `!v strftime("%Y")`. All Rights Reserved.
+// This code is the copyright of Focal Point Positioning Limited and
+// cannot be used, copied or distributed without the express written
+// permission of Focal Point Positioning Limited.
+${0}
+endsnippet