Skip to content

Commit

Permalink
added js snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjtait committed Apr 20, 2017
1 parent 3f7b76e commit 90ee843
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .vim/UltiSnips/javascript.snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
snippet des "Describe block" b
describe('$1', () => {
$2
});
endsnippet

snippet it "It block" b
it('$1', () => {
$2
});
endsnippet

snippet im "Import block" b
import $1 from '$2';
endsnippet
5 changes: 5 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,8 @@ au BufNewFile,BufRead Gemfile set filetype=ruby
au BufNewFile,BufRead Rakefile set filetype=ruby
au BufNewFile,BufRead Fudgefile set filetype=ruby
au BufRead,BufNewFile *.md set filetype=markdown

" Set ultisnips triggers
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<s-tab>"

0 comments on commit 90ee843

Please sign in to comment.