dot-files/vim/.vim/UltiSnips/cpp.snippets

11 lines
180 B
Plaintext

snippet ns "namespace .. (namespace)"
namespace${1/.+/ /m}${1:`!p snip.rv = snip.basename or "name"`}
{
${VISUAL}$0
}${1/.+/ \/\/ /m}namespace $1
endsnippet
# vim:ft=snippets: