From 9931e0888b2419326ae10ebbfae532261c5c125f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 30 Jun 2016 16:11:56 +0200 Subject: Fix submodules --- vim/bundle/vim-snippets | 1 + .../UltiSnips/javascript-node.snippets | 65 ---------------------- 2 files changed, 1 insertion(+), 65 deletions(-) create mode 160000 vim/bundle/vim-snippets delete mode 100644 vim/bundle/vim-snippets/UltiSnips/javascript-node.snippets (limited to 'vim/bundle/vim-snippets/UltiSnips/javascript-node.snippets') diff --git a/vim/bundle/vim-snippets b/vim/bundle/vim-snippets new file mode 160000 index 0000000..15d7e5e --- /dev/null +++ b/vim/bundle/vim-snippets @@ -0,0 +1 @@ +Subproject commit 15d7e5ec26ec93adee4051b6359be90a943aa38d diff --git a/vim/bundle/vim-snippets/UltiSnips/javascript-node.snippets b/vim/bundle/vim-snippets/UltiSnips/javascript-node.snippets deleted file mode 100644 index 7a14dee..0000000 --- a/vim/bundle/vim-snippets/UltiSnips/javascript-node.snippets +++ /dev/null @@ -1,65 +0,0 @@ -priority -50 - -snippet #! "shebang" -#!/usr/bin/env node -endsnippet - -snippet vreq "assign a CommonJS-style module to a var" -var ${0:${1/(.+\/)*(\w+)(-|\b|$)(\..+$)?/\u$2/g}} = require('${1}'); -endsnippet - -snippet ex "module.exports" -module.exports = ${1}; -endsnippet - -snippet hcs "http.createServer" -http.createServer(${1}).listen(${2}); -endsnippet - -snippet ncs "net.createServer" -net.createServer(function(${1:socket}){ - ${1}.on('data', function(${3:data}){ - ${4} - }); - ${1}.on('end', function(){ - ${5} - }); -}).listen(${6:8124}); -endsnippet - -snippet pipe "pipe" -pipe(${1:stream})${2} -endsnippet - -# Express snippets - -snippet eget "express GET" -${1:app}.get('${2}', ${3}); -endsnippet - -snippet epost "express POST" -${1:app}.post('${2}', ${3}); -endsnippet - -snippet eput "express PUT" -${1:app}.put('${2}', ${3}); -endsnippet - -snippet edelete "express DELETE" -${1:app}.delete('${2}', ${3}); -endsnippet - -# process snippets - -snippet stdout "stdout" -process.stdout -endsnippet - -snippet stdin "stdin" -process.stdin -endsnippet - -snippet stderr "stderr" -process.stderr -endsnippet - -- cgit v1.2.3