mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated all plugins that are non-forked. Added some new plugins.
Added update_plugins.py which can fetch new plugins from GitHub. New plugins added: zencoding, vim-indent-object, taglist, nginx.vim
This commit is contained in:
@ -0,0 +1 @@
|
||||
${1:obj}.add('${2:selector expression}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.addClass('${2:class name}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.after('${2:Some text <b>and bold!</b>}')${3}
|
@ -0,0 +1,18 @@
|
||||
$.ajax({
|
||||
url: "${1:mydomain.com/url}",
|
||||
type: "${2:POST}",
|
||||
dataType: "${3:xml/html/script/json}",
|
||||
data: $.param( $("${4:Element or Expression}") ),
|
||||
|
||||
complete: function() {
|
||||
${5://called when complete}
|
||||
},
|
||||
|
||||
success: function() {
|
||||
${6://called when successful}
|
||||
},
|
||||
|
||||
error: function() {
|
||||
${7://called when there is an error}
|
||||
},
|
||||
});
|
@ -0,0 +1,4 @@
|
||||
.ajaxError(function(${1:request, settings}) {
|
||||
${2://stuff to do when an AJAX call returns an error};
|
||||
});
|
||||
${3}
|
@ -0,0 +1,3 @@
|
||||
$.get('${1:/test/ajax-test.xml}', function(xml){
|
||||
${2:alert( ("title",xml).text() ) //optional stuff to do after get;}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
$.getIfModified('${1:/test/test.cgi}', function(data){
|
||||
${2:alert( "Data loaded: " + data ) //optional stuff to do after get;}
|
||||
});
|
@ -0,0 +1,5 @@
|
||||
$.post('<+/path/to/file.cgi+>',{
|
||||
<+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+>},
|
||||
function(){
|
||||
<+//stuff to do after event occurs;+>
|
||||
});
|
@ -0,0 +1,4 @@
|
||||
.ajaxSend(function(${1:request, settings}) {
|
||||
${2://stuff to do when an AJAX call returns an error};
|
||||
});
|
||||
${3}
|
@ -0,0 +1,18 @@
|
||||
$.ajaxSetup({
|
||||
url: "${1:mydomain.com/url}",
|
||||
type: "${2:POST}",
|
||||
dataType: "${3:xml/html/script/json}",
|
||||
data: $.param( $("${4:Element or Expression}") ),
|
||||
|
||||
complete: function() {
|
||||
${5://called when complete}
|
||||
},
|
||||
|
||||
success: function() {
|
||||
${6://called when successful}
|
||||
},
|
||||
|
||||
error: function() {
|
||||
${7://called when there is an error}
|
||||
},
|
||||
});
|
@ -0,0 +1,4 @@
|
||||
$.ajaxStart(function() {
|
||||
${1://stuff to do when an AJAX call is started and no other AJAX calls are in progress};
|
||||
});
|
||||
${2}
|
@ -0,0 +1,4 @@
|
||||
$.ajaxStop(function() {
|
||||
${1://stuff to do when an AJAX call is started and no other AJAX calls are in progress};
|
||||
});
|
||||
${2}
|
@ -0,0 +1,4 @@
|
||||
$.ajaxSuccess(function() {
|
||||
${1://stuff to do when an AJAX call is started and no other AJAX calls are in progress};
|
||||
});
|
||||
${2}
|
@ -0,0 +1 @@
|
||||
${1:obj}.animate({${2:param1: value1, param2: value2}}, ${3:speed})${4}
|
@ -0,0 +1 @@
|
||||
${1:obj}.append('${2:Some text <b>and bold!</b>}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.appendTo('${2:selector expression}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.attr('${2:attribute}', '${3:value}')${4}
|
@ -0,0 +1 @@
|
||||
${1:obj}.attr({'${2:attr1}': '${3:value1}', '${4:attr2}': '${5:value2}'})${6}
|
@ -0,0 +1 @@
|
||||
${1:obj}.before('${2:Some text <b>and bold!</b>}')${3}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.bind('${2:event name}', function(${3:event}) {
|
||||
${4:// Act on the event}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.blur(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.change(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.children('${2:selector expression}')${3}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.click(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.clone()${2}
|
@ -0,0 +1 @@
|
||||
${1:obj}.contains('${2:text to find}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.css('${2:attribute}', '${3:value}')${4}
|
@ -0,0 +1 @@
|
||||
${1:obj}.css({${2:attribute1}: '${3:value1}', ${4:attribute2}: '${5:value2}'})${6}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.dblclick(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.each(function(index) {
|
||||
${2:this.innerHTML = this + " is the element, " + index + " is the position";}
|
||||
});
|
@ -0,0 +1 @@
|
||||
$('${1}')${2:}
|
@ -0,0 +1 @@
|
||||
$.trim('${1:string}')${2}
|
@ -0,0 +1 @@
|
||||
${1:obj}.end()${2}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.error(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.fadeIn('${2:slow/400/fast}')${3}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.fadeIn('slow/400/fast', function() {
|
||||
${2://Stuff to do *after* the animation takes place};
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.fadeOut('${2:slow/400/fast}')${3}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.fadeOut('slow/400/fast', function() {
|
||||
${2://Stuff to do *after* the animation takes place};
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.fadeTo('${2:slow/400/fast}', ${3:0.5})${4}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.fadeTo('slow/400/fast', ${2:0.5}, function() {
|
||||
${3://Stuff to do *after* the animation takes place};
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.filter('${2:selector expression}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.find('${2:selector expression}')${3}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.focus(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.get(${2:element index})${3}
|
@ -0,0 +1,5 @@
|
||||
$.getJSON('<+/path/to/file.cgi+>',{
|
||||
<+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+>},
|
||||
function(json){
|
||||
<+//stuff to do after event occurs;+>
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
$.getScript('${1:somescript.js}', function(){
|
||||
${2://optional stuff to do after getScript;}
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.height(${2:integer})${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.hide('${2:slow/400/fast}')${3}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.hide('${2:slow/400/fast}', function() {
|
||||
${3://Stuff to do *after* the animation takes place}
|
||||
});
|
@ -0,0 +1,5 @@
|
||||
${1:obj}.hover(function() {
|
||||
${2:// Stuff to do when the mouse enters the element;}
|
||||
}, function() {
|
||||
${3:// Stuff to do when the mouse leaves the element;}
|
||||
});${4}
|
@ -0,0 +1 @@
|
||||
${1:obj}.html('${2:Some text <b>and bold!</b>}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.insertAfter('${2:selector expression}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.insertBefore('${2:selector expression}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.is('${2:selector expression}')${3}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.load(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
<+obj+>.load('<+/path/to/file.htm+>', { <+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+> }, function() {
|
||||
<+// Stuff to do after the page is loaded+>
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
<+obj+>.loadIfModified('<+/path/to/file.htm+>', { <+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+> }, function() {
|
||||
<+// Stuff to do after the page is loaded+>
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.mousedown(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.mousemove(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.mouseout(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.mouseover(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.mouseup(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.next('${2:selector expression}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.not('${2:selector expression}')${3}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.one('${2:event name}', function(${3:event}) {
|
||||
${4:// Act on the event once}
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.parent('${2:selector expression}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.parents('${2:selector expression}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.prepend('${2:Some text <b>and bold!</b>}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.prependTo('${2:selector expression}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.prev('${2:selector expression}')${3}
|
@ -0,0 +1,3 @@
|
||||
$(document).ready(function() {
|
||||
${1:// Stuff to do as soon as the DOM is ready;}
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.remove()${2}
|
@ -0,0 +1 @@
|
||||
${1:obj}.removeAttr('${2:attribute name}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.removeClass('${2:class name}')${3}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.reset(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.resize(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.scroll(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.slideDown('${2:slow/400/fast}')${3}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.slideDown('${2:slow/400/fast}', function() {
|
||||
${3://Stuff to do *after* the animation takes place};
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.slideUp('${2:slow/400/fast}', function() {
|
||||
${3://Stuff to do *after* the animation takes place};
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.select(function() {
|
||||
${2:// Act on the event}
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.show('${2:slow/400/fast}')${3}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.show('${2:slow/400/fast}', function() {
|
||||
${3://Stuff to do *after* the animation takes place}
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.siblings('${2:selector expression}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.size()${2}
|
@ -0,0 +1 @@
|
||||
${1:obj}.slideToggle('${2:slow/400/fast}')${3}
|
@ -0,0 +1,3 @@
|
||||
${1:obj}.submit(function() {
|
||||
${2:// Act on the event once}
|
||||
});
|
@ -0,0 +1 @@
|
||||
${1:obj}.slideUp('${2:slow/400/fast}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.text(${2:'some text'})${3}
|
@ -0,0 +1 @@
|
||||
$(this)${1}
|
@ -0,0 +1,6 @@
|
||||
${1:obj}.toggle(function() {
|
||||
${2:// Stuff to do every *odd* time the element is clicked;}
|
||||
}, function() {
|
||||
${3:// Stuff to do every *even* time the element is clicked;}
|
||||
});
|
||||
${4}
|
@ -0,0 +1 @@
|
||||
${1:obj}.toggleClass('${2:class name}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.toggle('${2:slow/400/fast}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.trigger('${2:event name}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.unbind('${2:event name}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.val('${2:text}')${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.width(${2:integer})${3}
|
@ -0,0 +1 @@
|
||||
${1:obj}.wrap('${2:<div class="extra-wrapper"></div>}')${3}
|
Reference in New Issue
Block a user