[ADD][VIM] C++ namespace snippet
This commit is contained in:
parent
8faf2e188b
commit
e8314d6f34
10
vim/.vim/UltiSnips/cpp.snippets
Normal file
10
vim/.vim/UltiSnips/cpp.snippets
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
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:
|
Loading…
Reference in a new issue