diff --git a/vim/UltiSnips/javascript.snippets b/vim/UltiSnips/javascript.snippets index f3e12ef..ff3e948 100644 --- a/vim/UltiSnips/javascript.snippets +++ b/vim/UltiSnips/javascript.snippets @@ -1,10 +1,10 @@ snippet f "function" -function ${1:function_name} (${2:argument}) { +function ${1:function_name}(${2:argument}) { ${VISUAL}$0 } endsnippet -snippet scf "self calling function" +snippet scf "self calling function" ! (function (${1:argument}) { ${VISUAL}$0 }(${2:$1}));