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 + .../snippets/javascript/javascript.node.snippets | 51 ---------------------- 2 files changed, 1 insertion(+), 51 deletions(-) create mode 160000 vim/bundle/vim-snippets delete mode 100644 vim/bundle/vim-snippets/snippets/javascript/javascript.node.snippets (limited to 'vim/bundle/vim-snippets/snippets/javascript/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/snippets/javascript/javascript.node.snippets b/vim/bundle/vim-snippets/snippets/javascript/javascript.node.snippets deleted file mode 100644 index 2b5aefb..0000000 --- a/vim/bundle/vim-snippets/snippets/javascript/javascript.node.snippets +++ /dev/null @@ -1,51 +0,0 @@ -snippet #! - #!/usr/bin/env node -# module exports -snippet ex - module.exports = ${1}; -# require -snippet re - ${1:var} ${2} = require('${3:module_name}'); -# EventEmitter -snippet on - on('${1:event_name}', function(${2:stream}) { - ${3} - }); -snippet emit - emit('${1:event_name}', ${2:args}); -snippet once - once('${1:event_name}', function(${2:stream}) { - ${3} - }); -# http. User js function snippet as handler -snippet http - http.createServer(${1:handler}).listen(${2:port_number}); -# net -snippet net - net.createServer(function(${1:socket}){ - ${1}.on('data', function('data'){ - ${2} - ]}); - ${1}.on('end', function(){ - ${3} - }); - }).listen(${4:8124}); -# Stream snippets -snippet pipe - pipe(${1:stream})${2} -# Express snippets -snippet eget - ${1:app}.get('${2:route}', ${3:handler}); -snippet epost - ${1:app}.post('${2:route}', ${3:handler}); -snippet eput - ${1:app}.put('${2:route}', ${3:handler}); -snippet edel - ${1:app}.delete('${2:route}', ${3:handler}); -# process snippets -snippet stdin - process.stdin -snippet stdout - process.stdout -snippet stderr - process.stderr -- cgit v1.2.3