Skip to content

Javascript: Self-invoked anonymous function and switch statement snippet #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 180 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
9666d6d
add html snippet on < for tags
Apr 1, 2009
1bf4f53
adding eruby tags snnipets
nathmisaki Oct 26, 2009
3c99f46
fix the < html snippet
Apr 13, 2009
3e45180
erb: tags, js: i18n
Sep 29, 2009
4177b09
removing and renaming eruby snippets for erb <%= %> tag
nathmisaki Nov 3, 2009
012122a
changing ife.snippet to <%- -%> tags
nathmisaki Nov 3, 2009
b74f0c9
adding else snippet to eruby
nathmisaki Nov 3, 2009
3977808
adding erb trim tags to eruby/if.snippet
nathmisaki Nov 3, 2009
6bb06fa
fixing form_tag snippet for snipmate
rafaelfranca Nov 21, 2009
578a4cd
changed eruby end snippet to use <%- -%> tag
rafaelfranca Nov 21, 2009
6a0f990
added test.snippet to ruby-rails
ncolgan Nov 1, 2009
db890f5
fix in ruby/fileeach.snippet
Sep 26, 2009
62ee26f
convert ruby-rails find snippets to snipmate
Sep 27, 2009
6dbad4b
add snippets for machinist and remarkable
ramon Aug 30, 2009
6e93fc4
Removed unused snippets
rafaelfranca Nov 21, 2009
fc82cda
Fixed identation in rspec it snippet
rafaelfranca Nov 21, 2009
6e7944f
Added somes html doctype
rafaelfranca Nov 21, 2009
04f1056
Removed default doctype
rafaelfranca Nov 21, 2009
6591a3a
Fixed lorem.snippet
rafaelfranca Nov 21, 2009
3a79476
Fixed identation for eruby snippets
rafaelfranca Nov 21, 2009
11fa7ce
Remover unused snippets
rafaelfranca Nov 21, 2009
2897e01
Fixed collection_select snippet
rafaelfranca Nov 21, 2009
1c60c93
Added option to collection_select snippet
rafaelfranca Nov 21, 2009
e374a85
Fixed liai.snippet
rafaelfranca Nov 21, 2009
e522258
added helpful cucumber snippets
jashmenn Jun 9, 2009
ea064aa
tweaks to ruby inject
jashmenn Jun 9, 2009
8aa2575
Added css snippet
rafaelfranca Nov 21, 2009
1853c4f
Fixed inline_script snippet
rafaelfranca Nov 21, 2009
baf6fc1
updated html snippets
rafaelfranca Nov 21, 2009
4da51c7
Fixed indentation
rafaelfranca Nov 21, 2009
217b85d
changed the name of the a href snippet to ah
rafaelfranca Nov 21, 2009
82ee613
Fixed bug in h1 snippet
rafaelfranca Nov 25, 2009
6e72da2
Fixed HTML 5 doctype snippet
rafaelfranca Nov 25, 2009
6a5e613
Fixed has_many rails snippet
rafaelfranca Jan 29, 2010
d8bbd4b
Fixes defindex rails snippet
rafaelfranca Jan 29, 2010
ece52a3
Added snippet for accept_nested_attributes_for
rafaelfranca Jan 29, 2010
f3f9b66
Added html5 skel snippet
rafaelfranca Feb 20, 2010
e328b75
add sshconfig/host snippet
Nov 25, 2009
fd8d02d
fix html and factory girl. remove conflicting ruby snippets. dont nee…
enriquez Dec 6, 2009
e68c9e2
fixing commonly used rails snippets
enriquez Dec 17, 2009
55710e3
sef stands for shared_examples_for
joaovitor Dec 17, 2009
1e49df0
isbl stands for it_should_behave_like
joaovitor Dec 17, 2009
46fad8c
Better Rake file (I think :)
zzeroo Dec 19, 2009
d06f88c
Unfinished Cucumber snippets
zzeroo Dec 19, 2009
5dc7c08
Adjusted js snippets for my own needs
bogdan Mar 4, 2010
87d3d28
Cucumber feature snippets
bogdan Feb 2, 2010
3fe88de
Ruby snippets improvements
bogdan Feb 2, 2010
226eb23
Factory girl snippets improments
bogdan Feb 2, 2010
563da17
Fixed desc snippet spec file path
bogdan Feb 15, 2010
7a6c7a0
Add rspec-ruby method stub snippet
bogdan Feb 15, 2010
477f379
Add weel formatting to snippet
bogdan Mar 4, 2010
b1356fe
Improved ruby module snippet
bogdan Feb 15, 2010
8537ca7
fixing table hardcore snippet
nathmisaki Feb 1, 2010
35e25a2
add tag inline (ti) snippet
nathmisaki Nov 21, 2009
03cd10a
delete said <.snippet file
jredville Apr 19, 2009
fe86084
changed tcd snippet to work with the combined nerdsnippet
May 14, 2009
da295d2
more eruby-rails nsippet fixes
May 18, 2009
30d8986
fix remove_column migration
Jun 15, 2009
c984cd8
added submit to remote snippet
fishman Aug 27, 2009
9c5f32c
added link_to_remote snippet
fishman Aug 27, 2009
c155553
add html snippet on < for tags
Apr 1, 2009
1f6671d
Removing last tabs from t and ti snippets
nathmisaki Jan 28, 2010
40bb712
update php snippet
scorpio Jul 23, 2009
237e842
fix the < html snippet
Apr 13, 2009
7be6976
add vp
alvin2ye Aug 24, 2009
64b39c8
added fold.snippet and rspec/itb.snippet
Apr 4, 2010
87aabca
jquery snippets
anveo Feb 20, 2010
f0fe6eb
Added my most-used custom snippets from TextMate
jsahlen Feb 8, 2010
f56a2a6
Added !important css snippet
jsahlen Feb 9, 2010
1462bd5
Adding h.snippet (Hash :key => value) in Ruby
nathmisaki Mar 20, 2010
878fce5
Ruby rspec snippets improvements
rafaelfranca Apr 8, 2010
9f5d5b9
Removed duplicate snippets
rafaelfranca Apr 9, 2010
4e14892
Removed duplicate snippet
rafaelfranca Apr 9, 2010
b3b629d
Changed eruby snippets for work correctly in Rails 3
rafaelfranca Apr 9, 2010
a83b587
Changed eruby-rails snippets for work correctly in Rails 3
rafaelfranca Apr 9, 2010
8254034
Changed haml snippets for work correctly in Rails 3
rafaelfranca Apr 9, 2010
31b6394
Changed style for some haml snippets
rafaelfranca Apr 9, 2010
3c2ef25
Removed duplicate php snippet
rafaelfranca Apr 12, 2010
942c2dd
Changed inline script tag for self closed
rafaelfranca Apr 12, 2010
2d836d9
Revert "Changed inline script tag for self closed"
rafaelfranca Apr 12, 2010
63cd060
Removed duplicate snippet
rafaelfranca Apr 13, 2010
3c659e9
Updating from old snippets format to snipmate, completing missing sni…
akitaonrails Apr 22, 2010
dbf41ff
fixing merge conflicts from remote rafaelfranca
akitaonrails Apr 26, 2010
cb4b464
Adding evaluation tags to eruby
akitaonrails Apr 26, 2010
7a532b8
removing < snippet
akitaonrails May 4, 2010
c2d7eb7
removing < snippet
akitaonrails May 4, 2010
44163b4
Merge branch 'rafaelfranca'
akitaonrails Jul 25, 2010
9ee6bf9
Merge branch 'scrooloose'
akitaonrails Jul 25, 2010
1c9975d
Fixed javascript for snippet
rafaelfranca Jul 27, 2010
bc1619d
Fixed class snippet for python
Aug 9, 2010
8725575
Added a new class snippet for python
Aug 9, 2010
58f6a71
Fixed some of the snippets for python, and added indentation for them
Aug 9, 2010
aebfe42
Added if and if-else snippets for python
Aug 9, 2010
21671c2
A few customizations to what I remember from textmate
cehoffman Jul 31, 2010
b4c1874
class r/w snippets
cehoffman Jul 31, 2010
0f3b432
Rearrange ruby snippets to be closer to textmate
cehoffman Aug 2, 2010
366672f
Adding ruby spec name and updating desc snippet
vinibaggio Apr 21, 2010
ce443a8
Adding snippets more text-mate like
vinibaggio Apr 23, 2010
ad29161
Adding snippets for accepts_nested_attributes_for
vinibaggio Apr 23, 2010
fe2eeb9
modified a few snippets for rspec
vinibaggio Apr 27, 2010
c4d96d6
Changing javascript inclusion snippets
May 21, 2010
ecffb64
Added a few snippets for rspec
vinibaggio Jun 17, 2010
a185c84
Adding capybara snippets
vinibaggio Jul 21, 2010
2abc4de
Missing ':' on the python's if snippet
Nov 1, 2006
c94b6db
Added a shebang snippet for python
Nov 1, 2006
fe25d24
Another missing ':'
Nov 1, 2006
4f14ad8
Added a exception snippet
Nov 1, 2006
804ab8d
Merge with bogdan branch and some Rails 3 improvement
rafaelfranca Sep 6, 2010
d674f40
Merge with vinibaggio remote
rafaelfranca Sep 6, 2010
d7ffd2f
Added divi snippet for div with id
stjhimy Oct 15, 2010
c803758
Added divc snippet for div with class
stjhimy Oct 15, 2010
ebe546d
Added td snippet
stjhimy Oct 15, 2010
5c988cd
Added tr snippet
stjhimy Oct 15, 2010
9e10039
Added th snippet
stjhimy Oct 16, 2010
edc7e44
Added pe snippet
stjhimy Oct 16, 2010
8471408
Added pr snippet
stjhimy Oct 16, 2010
06d0a57
Fixed the folder for pe and pr
stjhimy Oct 16, 2010
09ce0f3
Another bug on pr fixed
stjhimy Oct 16, 2010
4b11cc2
Added divi snippet for div with id
stjhimy Oct 15, 2010
87fdb0a
Added divc snippet for div with class
stjhimy Oct 15, 2010
92b3786
Added td snippet
stjhimy Oct 15, 2010
f208a5f
Added tr snippet
stjhimy Oct 15, 2010
f658b69
Added th snippet
stjhimy Oct 16, 2010
bac61ec
Added pe snippet Works just like %= but i think its faster to type, g…
stjhimy Oct 16, 2010
e62f6c3
Added pr snippet Works just like % but i think its faster to type, gm…
stjhimy Oct 16, 2010
d77108d
Fixed the folder for pe and pr
stjhimy Oct 16, 2010
65e0a06
Another bug on pr fixed
stjhimy Oct 16, 2010
c38bd63
added gsp, groovy and grails snnipets
victorhg Feb 11, 2011
d596cf3
Use path instead of url
rafaelfranca Mar 15, 2011
2574d41
Find before update
rafaelfranca Mar 15, 2011
bc57cec
Python snippets miss indents
ejel Apr 25, 2011
0847a29
Merge pull request #5 from ejel/python-indent
akitaonrails May 5, 2011
0b2f38c
merging back from scrooloose's repo
akitaonrails Jun 10, 2011
a56f3ea
Merge branch 'master' of github.com:akitaonrails/snipmate-snippets
akitaonrails Jun 10, 2011
90ecdde
fixing the snippet for class in python
rafaelrdprado Jun 11, 2011
3097f45
Merge pull request #6 from rafaelregis/master
akitaonrails Jun 11, 2011
274572a
added some html5 tags to the html/ snippets
brycemcd Jun 29, 2011
6c1bd73
Merge pull request #7 from brycem/html5_tags
akitaonrails Jul 21, 2011
fddce15
Removing unused snippets
Sep 3, 2011
870f36e
Removed unused space from the def snippet
Sep 3, 2011
411c31d
Add snippets for ActionScript 3.0.
endel Sep 25, 2011
cd4adb0
Add embed snippet and support function for package detection.
endel Sep 25, 2011
bf60195
Improve all actionscript snippets.
endel Sep 25, 2011
57942e5
Merge pull request #8 from endel/master
akitaonrails Oct 1, 2011
aaafb8c
Remove some unused snippets
rafaelfranca Oct 9, 2011
ca07f4c
Update eruby-rails snippets
rafaelfranca Oct 9, 2011
149fe83
Update HTML snippets
rafaelfranca Oct 9, 2011
d47ae48
Update javascript snippets
rafaelfranca Oct 9, 2011
a507b49
Update ruby-rails snippets
rafaelfranca Oct 9, 2011
3723294
Update ruby snippets
rafaelfranca Oct 9, 2011
e3262ea
Update ruby-rspec snippets
rafaelfranca Oct 9, 2011
9f7ada8
Change javascript snippets style
rafaelfranca Oct 9, 2011
2312132
Fix ruby snippet filename
carlosantoniodasilva Oct 11, 2011
6e9d96f
Added pry.snippet (for PRY REPL invocation)
asux Nov 10, 2011
febe348
Merge pull request #9 from asux/master
akitaonrails Nov 17, 2011
e742587
Kill submit to remote
carlosantoniodasilva Dec 14, 2011
048e8ed
Added several Rails migration add_* methods
asux Jan 25, 2012
a0f4962
Fixed comment methods (add -> set)
asux Jan 25, 2012
f32ce2d
Merge pull request #10 from asux/master
akitaonrails Feb 1, 2012
8efd456
Kill not used Rakefile
carlosantoniodasilva Feb 26, 2012
a875e3e
Update link to remote
carlosantoniodasilva Feb 26, 2012
def4042
Merge remote-tracking branch 'carlosantoniodasilva/master'
Feb 26, 2012
554bbe6
Added .class snippet for css
jonatasnona Apr 8, 2012
d9886ce
Javascript: Self-invoked anonymous function
jonatasnona Apr 8, 2012
22b6caf
Javascript: Switch statement snippet
jonatasnona Apr 22, 2012
ca04cd3
Merge with akitaonrails
jonatasnona Jun 13, 2012
2c1c0ef
Merge with rafaelfranca master
jonatasnona Jun 13, 2012
afa1e35
Removing unnecessary folders
jonatasnona Sep 14, 2012
446174b
Added plugin folder
jonatasnona Sep 14, 2012
2ddb9a1
Necessary folders
jonatasnona Sep 14, 2012
88825b9
Tags: Added help file
jonatasnona Sep 14, 2012
85e629a
PHP: Bugfix with require
jonatasnona Sep 18, 2012
73af01b
Python: cleaning the for.snippet file
jonatasnona Dec 5, 2012
3fad55c
Javascript: Resolve bugs in if statements
jonatasnona Dec 9, 2012
b68da3f
Javascript: Add for-in loop snippet
jonatasnona Dec 9, 2012
c03a7ed
Javascript: correctly for-in snippet
jonatasnona Dec 9, 2012
5d210a7
Javascript: Add try-catch snippet
jonatasnona Dec 10, 2012
dafd50e
Javascript: Add Getter and Setter snippets
jonatasnona Dec 10, 2012
952a541
Python: Bugfix in the get snippet
jonatasnona Dec 16, 2012
6eb55d7
Groovy snippets support
jonatasnona Jan 28, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions after/plugin/snipMate.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
" These are the mappings for snipMate.vim. Putting it here ensures that it
" will be mapped after other plugins such as supertab.vim.
if !exists('loaded_snips') || exists('s:did_snips_mappings')
finish
endif
let s:did_snips_mappings = 1

ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
ino <silent> <s-tab> <c-r>=BackwardsSnippet()<cr>
snor <silent> <s-tab> <esc>i<right><c-r>=BackwardsSnippet()<cr>
ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>

" The default mappings for these are annoying & sometimes break snipMate.
" You can change them back if you want, I've put them here for convenience.
snor <bs> b<bs>
snor <right> <esc>a
snor <left> <esc>bi
snor ' b<bs>'
snor ` b<bs>`
snor % b<bs>%
snor U b<bs>U
snor ^ b<bs>^
snor \ b<bs>\
snor <c-x> b<bs><c-x>

" By default load snippets in snippets_dir
if empty(snippets_dir)
finish
endif

call GetSnippets(snippets_dir, '_') " Get global snippets

au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif
" vim:noet:sw=4:ts=4:ft=vim
Loading