Skip to content

Commit

Permalink
Added own Javascripts snippets for Ultisnip
Browse files Browse the repository at this point in the history
  • Loading branch information
anttihirvonen committed Feb 20, 2013
1 parent a82643a commit 206752b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions vim/UltiSnips/javascript.snippets
@@ -0,0 +1,35 @@
snippet def "Define (js)" b
define([${1:deps}], function (${2:params}) {
'use strict';

$0
});
endsnippet

snippet req "Require (js)" b
require([${1:deps}], function (${2:params}) {
$0
});
endsnippet

snippet afun "Anonymous function (js)" i
function () {
$0
}
endsnippet

snippet con "Log to console" b
console.log("${1:message}");
endsnippet

snippet des "Describe (js)" b!
describe('${1:description}', function () {
$0
});
endsnippet

snippet it "it (js)" b!
it('${1:description}', function () {
$0
});
endsnippet

0 comments on commit 206752b

Please sign in to comment.