Add custom snippets

This commit is contained in:
Buddy Sandidge 2013-10-01 20:10:02 -07:00
parent 07343eb095
commit 37184ed3d6
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,3 @@
snippet #! "Shebang" !b
#!/usr/bin/env ${1:bash}
endsnippet

View File

@ -0,0 +1,15 @@
snippet f "function"
function ${1:function_name} (${2:argument}) {
${VISUAL}$0
}
endsnippet
snippet scf "self calling function"
(function (${1:argument}) {
${VISUAL}$0
}(${2:$1}));
endsnippet
snippet log "console.log"
console.log(${1:"${2:value}"});
endsnippet

View File

@ -0,0 +1,3 @@
snippet map "Map snippet"
map(${1:lambda x: x}, ${2:[]})
endsnippet