X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/d6af24826c9ef92b5538ddffca9c3d46eaf193ea..d7cc13e38b861c92f3ee383aca22abc52847b298:/vim/ultisnips/cpp.snippets diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index 4e3d374..7dfff3b 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -20,8 +20,16 @@ ${VISUAL}${0} }${1/.+/ \/\/ namespace $0/m} endsnippet +snippet mfun "Member Function" b +${4:void} ${1:`!p snip.rv = snip.basename or "name"`}::${2:memberFunction}(${3}) +{ + ${0} +} +endsnippet + snippet for "for loop (for)" -for (${4:int} ${2:i} = 0; $2 < ${1:count}; ${3:++$2}) { +for (${4:int} ${2:i} = 0; $2 < ${1:count}; ${3:++$2}) +{ ${VISUAL}${0} } endsnippet