diff --git a/vim/UltiSnips/javascript.snippets b/vim/UltiSnips/javascript.snippets index 03aa03a..76a759c 100644 --- a/vim/UltiSnips/javascript.snippets +++ b/vim/UltiSnips/javascript.snippets @@ -1,4 +1,4 @@ -snippet f "function" +snippet f "function" ! function ${1:function_name}(${2:argument}) { ${VISUAL}$0 } @@ -16,3 +16,8 @@ endsnippet snippet strict "use strict" 'use strict'; endsnippet +snippet timeout "setTimeout" ! +setTimeout(function () { + ${1://code} +}, 0); +endsnippet