diff --git a/autoload/neosnippet/snippets/c.snip b/autoload/neosnippet/snippets/c.snip index 677e61c..34914c8 100644 --- a/autoload/neosnippet/snippets/c.snip +++ b/autoload/neosnippet/snippets/c.snip @@ -1,23 +1,23 @@ snippet if abbr if () {} - if (${1:/* condition */}) { - ${0:/* code */} + if (${1:#:condition}) { + ${0:TARGET} } snippet else else { - ${0} + ${0:TARGET} } snippet elseif - else if (${1:/* condition */}) { - ${0} + else if (${1:#:condition}) { + ${0:TARGET} } snippet ifelse abbr if () {} else {} - if (${1:condition}) { - ${2} + if (${1:#:condition}) { + ${2:TARGET} } else { ${3} } @@ -25,59 +25,59 @@ abbr if () {} else {} snippet for abbr for () {} for (${1} = 0; $1 < ${2}; $1++) { - ${0} + ${0:TARGET} } snippet while abbr while () {} - while (${1:/* condition */}) { - ${0:/* code */} + while (${1:#:condition}) { + ${0:TARGET} } snippet do_while alias do do { - ${0:/* code */} - } while (${1:/* condition */}); + ${0:TARGET:code} + } while (${1:#:condition}); snippet switch abbr switch () {} - switch (${1:var}) { - case ${2:val}: - ${0} + switch (${1:#:var}) { + case ${2:#:val}: + ${0:TARGET} break; } snippet function alias func abbr func() {} - ${1:void} ${2:func_name}(${3}) { - ${0} + ${1:void} ${2:#:func_name}(${3:#:args}) { + ${0:TARGET} } snippet struct abbr struct {} - struct ${1:name} { - ${0:/* data */} + struct ${1:#:name} { + ${0:TARGET:data} }; # Typedef struct snippet struct_typedef - typedef struct ${1:name} { - ${0:/* data */} + typedef struct ${1:#:name} { + ${0:TARGET:data} }; snippet enum abbr enum {} - enum ${1:name} { - ${0} + enum ${1:#:name} { + ${0:TARGET} }; # hard-tab is necessary; C indent doesn't support this. snippet main int main(int argc, char const* argv[]) { - ${0} + ${0:TARGET} return 0; } @@ -88,13 +88,13 @@ alias #inc, #include # #include "..." snippet inc2 alias #inc2, #include2 - #include "${1:}.h"${0} + #include "${1}.h"${0} snippet ifndef alias #ifndef abbr #ifndef ... #define ... #endif #ifndef $1 - #define ${1:SYMBOL} + #define ${1:#:SYMBOL} #endif${0} snippet def @@ -107,16 +107,16 @@ abbr include-guard #ifndef ${1:SYMBOL} #define $1 - ${0} + ${0:TARGET} #endif /* end of include guard */ # Tertiary conditional snippet conditional - (${1:/* condition */}) ? ${2:a} : ${3:b} + (${1:#:condition}) ? ${2:#:a} : ${3:#:b} # Typedef snippet typedef - typedef ${1:base_type} ${2:custom_type}; + typedef ${1:#:base_type} ${2:#:custom_type}; snippet printf abbr printf("...\n", ...); @@ -128,12 +128,12 @@ abbr fprintf(..., "...\n", ...); snippet comment alias /* - /* ${1:comment} */ + /* ${1:#:comment} */ ${0} snippet sizeof alias size - sizeof(${0}) + sizeof(${0:TARGET}) snippet helloworld #include @@ -142,3 +142,4 @@ snippet helloworld puts("hello, world!"); return 0; } + diff --git a/autoload/neosnippet/snippets/coffee.snip b/autoload/neosnippet/snippets/coffee.snip index b1f5e59..55db9e1 100644 --- a/autoload/neosnippet/snippets/coffee.snip +++ b/autoload/neosnippet/snippets/coffee.snip @@ -1,72 +1,72 @@ snippet req - ${1:object} = require('$1') + ${1:#:object} = require('$1') snippet log console.log ${0} snippet unl - ${1:action} unless ${2:condition} + ${1:#:action} unless ${2:#:condition} snippet try try - ${1} - catch ${2:error} + ${1:TARGET} + catch ${2:#:error} ${3} snippet if - if ${1:condition} - ${0:# body...} + if ${1:#:condition} + ${0:TARGET} snippet elif - else if ${1:condition} - ${0:# body...} + else if ${1:#:condition} + ${0:TARGET} snippet ifte - if ${1:condition} then ${2:value} else ${3:other} + if ${1:#:condition} then ${2:#:value} else ${3:#:other} snippet ife - if ${1:condition} - ${2:# body...} + if ${1:#:condition} + ${2:TARGET} else - ${3:# body...} + ${3:#:body...} snippet swi - switch ${1:object} - when ${2:value} - ${0:# body...} + switch ${1:#:object} + when ${2:#:value} + ${0:TARGET} snippet ^j \`${1:javascript}\` snippet forr - for ${1:name} in [${2:start}..${3:finish}]${4: by ${5:step\}} - ${0:# body...} + for ${1:#:name} in [${2:#:start}..${3:#:finish}]${4: by ${5:#:step\}} + ${0:TARGET} snippet forrex - for ${1:name} in [${2:start}...${3:finish}]${4: by ${t:step\}} - ${0:# body...} + for ${1:#:name} in [${2:#:start}...${3:#:finish}]${4: by ${5:#:step\}} + ${0:TARGET} snippet foro - for ${1:key}, ${2:value} of ${3:object} - ${0:# body...} + for ${1:#:key}, ${2:#:value} of ${3:#:object} + ${0:TARGET} snippet fora - for ${1:name} in ${2:array} - ${0:# body...} + for ${1:#:name} in ${2:#:array} + ${0:TARGET} snippet fun - ${1:name} = (${2:args}) -> - ${0:# body...} + ${1:#:name} = (${2:#:args}) -> + ${0:TARGET} snippet bfun - (${1:args}) => - ${0:# body...} + (${1:#:args}) => + ${0:TARGET} snippet cla abbr cla options head - class ${1:ClassName}${2: extends ${3:Ancestor\}} + class ${1:#:ClassName}${2: extends ${3:#:Ancestor\}} - constructor: (${4:args}) -> - ${5:# body...} + constructor: (${4:#:args}) -> + ${5:TARGET} diff --git a/autoload/neosnippet/snippets/cpp.snip b/autoload/neosnippet/snippets/cpp.snip index a315d7b..4311fa2 100644 --- a/autoload/neosnippet/snippets/cpp.snip +++ b/autoload/neosnippet/snippets/cpp.snip @@ -6,34 +6,34 @@ abbr template snippet class abbr class {} - class ${1:name} { + class ${1:#:name} { ${2} }; snippet try abbr try catch try { - ${1} - } catch (${2:exception}) { + ${1:TARGET} + } catch (${2:e:xception}) { ${3} } # range based for ( C++11 feature ) snippet for_CPP11 abbr for (:) {} - for (${1:var} : ${2:container}) { - ${0} + for (${1:#:var} : ${2:#:container}) { + ${0:TARGET} } # lambda expression ( C++11 feature ) snippet lambda abbr [](){} - [${1}](${2})${3}{ ${4} } + [${1}](${2})${3}{ ${4:TARGET} } # scoped enumeration ( C++11 feature ) snippet enum_scoped abbr enum struct {} - enum struct { ${1} } + enum struct { ${1:TARGET} } # static assert ( C++11 feature ) snippet static_assert @@ -44,8 +44,8 @@ delete namespace snippet namespace abbr namespace {} options head - namespace ${1:name} - ${0} + namespace ${1:#:name} + ${0:TARGET} } // namespace $1 snippet static_cast @@ -64,8 +64,8 @@ snippet dynamic_cast abbr dynamic_cast<>() dynamic_cast<${1}>(${2})${0} -snippet helloworld -abbr #include\nint main... +snippet helloworld +abbr #include int main... #include int main(int argc, char const* argv[]) { @@ -73,3 +73,4 @@ abbr #include\nint main... cout << "hello, world!" << endl; return 0; } + diff --git a/autoload/neosnippet/snippets/css.snip b/autoload/neosnippet/snippets/css.snip index 88afe84..0daa163 100644 --- a/autoload/neosnippet/snippets/css.snip +++ b/autoload/neosnippet/snippets/css.snip @@ -1,6 +1,7 @@ snippet background alias bg background:${1};${2} + snippet backattachment alias ba background-attachment:${1};${2} @@ -21,8 +22,6 @@ snippet backrepeat alias br background-repeat:${1};${2} - - snippet border alias b border:${1};${2} diff --git a/autoload/neosnippet/snippets/d.snip b/autoload/neosnippet/snippets/d.snip index c4f36ba..b173a4e 100644 --- a/autoload/neosnippet/snippets/d.snip +++ b/autoload/neosnippet/snippets/d.snip @@ -16,24 +16,25 @@ delete fprintf snippet foreach abbr foreach() {} - foreach (${1:var}; ${2:list}) { - ${3} + foreach (${1:#:var}; ${2:#:list}) { + ${3:TARGET} } snippet class abbr class {} - class ${1:name} { - ${2} + class ${1:#:name} { + ${2:TARGET} } snippet struct abbr struct {} - struct ${1:name} { - ${2} + struct ${1:#:name} { + ${2:TARGET} } snippet enum abbr enum {} - enum ${1:name} { - ${2} + enum ${1:#:name} { + ${2:TARGET} } + diff --git a/autoload/neosnippet/snippets/eruby.snip b/autoload/neosnippet/snippets/eruby.snip index 6c7702b..583a9c6 100644 --- a/autoload/neosnippet/snippets/eruby.snip +++ b/autoload/neosnippet/snippets/eruby.snip @@ -1,19 +1,20 @@ snippet ruby_print abbr <%= %> - <%= ${1:Ruby print code} %>${2} + <%= ${1:TARGET} %>${2} snippet ruby_code abbr <% %> - <% ${1:Ruby code} %>${2} + <% ${1:TARGET} %>${2} snippet ruby_print_nonl abbr <%= -%> - <%= ${1:Ruby print code} -%>${2} + <%= ${1:TARGET} -%>${2} snippet ruby_code_nonl abbr <% -%> - <% ${1:Ruby code} -%>${2} + <% ${1:TARGET} -%>${2} snippet comment abbr <%# %> - <%# ${1:Comment} %>${2} + <%# ${1:TARGET} %>${2} + diff --git a/autoload/neosnippet/snippets/haskell.snip b/autoload/neosnippet/snippets/haskell.snip index dbdb3d7..c708575 100644 --- a/autoload/neosnippet/snippets/haskell.snip +++ b/autoload/neosnippet/snippets/haskell.snip @@ -20,3 +20,4 @@ snippet main abbr main = do main = do ${0} + diff --git a/autoload/neosnippet/snippets/java.snip b/autoload/neosnippet/snippets/java.snip index 053666b..a3f3fdf 100644 --- a/autoload/neosnippet/snippets/java.snip +++ b/autoload/neosnippet/snippets/java.snip @@ -17,26 +17,25 @@ snippet ab abstract snippet cl - class ${1} ${2:extends} ${3:Parent} ${4:implements} ${5:Interface} { - ${0} + class ${1} ${2:extends} ${3:#:Parent} ${4:implements} ${5:#:Interface} { + ${0:TARGET} } snippet in - interface ${1} ${2:extends} ${3:Parent} { - ${0} + interface ${1} ${2:extends} ${3:#:Parent} { + ${0:TARGET} } snippet m - ${1:void} ${2:method}(${3}) ${4:throws} { - ${0} + ${1:void} ${2:#:method}(${3}) ${4:throws} { + ${0:TARGET} } - snippet v - ${1:String} ${2:var}${3}; + ${1:#:type} ${2:#:var}${3}; snippet co - static public final ${1:String} ${2:var} = ${3};${4} + static public final ${1:#:type} ${2:#:var} = ${3};${4} snippet cos static public final String ${1:var} = "${2}";${4} @@ -45,48 +44,43 @@ snippet re return snippet as - assert ${1:test} ${2:Failure message};${3} + assert ${1:#:test} ${2:#:Failure message};${3} snippet if if (${1}) { - ${2} + ${2:TARGET} } snippet elif else if (${1}) { - ${2} + ${2:TARGET} } - snippet wh while (${1}) { - ${2} + ${2:TARGET} } - snippet for for (${1}; ${2}; ${3}) { - ${4} + ${4:TARGET} } - - + snippet fore for (${1} : ${2}) { - ${3} + ${3:TARGET} } snippet sw switch (${1}) { - ${2} + ${2:TARGET} } - - + snippet case abbr ce case ${1}: - ${2} + ${2:TARGET} ${0} - snippet br break; @@ -96,11 +90,10 @@ snippet de ${0} snippet ca - catch (${1:Exception} ${2:e}) { + catch (${1:#:Exception} ${2:e}) { ${0} } - - + snippet th throw ${0} @@ -115,20 +108,17 @@ snippet pa snippet tc public class ${1} extends ${2:TestCase} { - ${0} + ${0:TARGET} } - snippet test - public void test${1:Name}() throws Exception { - ${0} + public void test${1:#:Name}() throws Exception { + ${0:TARGET} } - snippet imt import junit.framework.TestCase; ${0} - snippet j.u java.util. @@ -149,7 +139,6 @@ snippet main public static void main(String[] args) { ${0} } - snippet pl System.out.println(${1});${0} @@ -160,9 +149,8 @@ snippet p #javadoc snippet c /** - * ${0} + * ${0:TARGET} */ - snippet a @author ${0:$TM_FULLNAME} @@ -172,7 +160,7 @@ abbr { {@code ${0} snippet d - @deprecated ${0:description} + @deprecated ${0:#:description} snippet {docRoot abbr { @@ -184,46 +172,47 @@ abbr { snippet {link abbr { - {@link ${1:target} ${0:label} + {@link ${1:#:target} ${0:#:label} snippet {linkplain abbr { - {@linkplain ${1:target} ${0:label} + {@linkplain ${1:#:target} ${0:#:label} snippet {literal abbr { {@literal ${0} snippet param - @param ${1:var} ${0:description} + @param ${1:#:var} ${0:#:description} snippet r - @return ${0:description} + @return ${0:#:description} snippet s - @see ${0:reference} + @see ${0:#:reference} snippet se - @serial ${0:description} + @serial ${0:#:description} snippet sd - @serialField ${0:description} + @serialField ${0:#:description} snippet sf - @serialField ${1:name} ${2:type} ${0:description} + @serialField ${1:#:name} ${2:#:type} ${0:#:description} snippet si - @since ${0:version} + @since ${0:#:version} snippet t - @throws ${1:class} ${0:description} + @throws ${1:#:class} ${0:#:description} snippet {value abbr { {@value ${0} snippet ver - @version ${0:version} + @version ${0:#:version} snippet null {@code null} + diff --git a/autoload/neosnippet/snippets/javascript.snip b/autoload/neosnippet/snippets/javascript.snip index 4d1820c..352de0c 100644 --- a/autoload/neosnippet/snippets/javascript.snip +++ b/autoload/neosnippet/snippets/javascript.snip @@ -1,59 +1,59 @@ snippet :f options head - ${1:method_name}: function(${2:attribute}) { - ${0} + ${1:#:method_name}: function(${2:#:attribute}) { + ${0:TARGET} } snippet function alias func options word - function ${1:function_name}(${2:argument}) { - ${0:// body...} + function ${1:#:function_name}(${2:#:argument}) { + ${0:TARGET} } snippet proto options head - ${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) { - ${0:// body...} + ${1:#:class_name}.prototype.${2:#:method_name} = function(${3:#:first_argument}) { + ${0:TARGET} }; snippet f options word - function(${1}) { ${0:$TM_SELECTED_TEXT} }; + function(${1}) { ${0:TARGET} }; snippet if options head if (${1:true}) { - ${0:$TM_SELECTED_TEXT} + ${0:TARGET} } snippet ife options head - if (${1:true}) { - ${0:$TM_SELECTED_TEXT} + if (${1:#:condition}) { + ${0:TARGET} } else { } snippet for options head - for (var ${2:i}=0; $2 < ${1:Things}.length; $2++) { - ${0} + for (var ${2:i}=0; $2 < ${1:#:Things}.length; $2++) { + ${0:TARGET} } snippet forin options head - for (var ${2:i} in ${1:Things}) { - ${0} + for (var ${2:i} in ${1:#:Things}) { + ${0:TARGET} }; snippet ;, options word - ${1:value_name}:${0:value}, + ${1:#:value_name}:${0:#:value}, snippet key options word - ${1:key}: "${2:value}"}${3:, } + ${1:#:key}: "${2:#:value}"}${3:, } snippet timeout options head diff --git a/autoload/neosnippet/snippets/lua.snip b/autoload/neosnippet/snippets/lua.snip index c57ff05..d10a438 100644 --- a/autoload/neosnippet/snippets/lua.snip +++ b/autoload/neosnippet/snippets/lua.snip @@ -2,26 +2,26 @@ snippet func alias function name(args)...end options word - function ${1:function_name}(${2:argument}) - ${0:// body...} + function ${1:#:function_name}(${2:#:argument}) + ${0:TARGET} end snippet if options head - if (${1:true}) then - ${0:$TM_SELECTED_TEXT} + if (${1:#:condition}) then + ${0:TARGET} end snippet for options head - for ${2:i} = 0, ${1:Things} do - ${0} + for ${2:i} = 0, ${1:#:Things} do + ${0:TARGET} end snippet forin options head for ${2:k}, ${3:v} in ${1:ipairs(xs)} do - ${0} + ${0:TARGET} end snippet print_table @@ -30,3 +30,4 @@ abbr for k, v in ipairs(table) do for k, v in ipairs(${1:table}) do print(k, v) end + diff --git a/autoload/neosnippet/snippets/markdown.snip b/autoload/neosnippet/snippets/markdown.snip index f3a0fb4..817de39 100644 --- a/autoload/neosnippet/snippets/markdown.snip +++ b/autoload/neosnippet/snippets/markdown.snip @@ -1,35 +1,35 @@ snippet link abbr [link][] - [${1:link_id}][]${2} + [${1:#:link_id}][]${2} snippet linkid abbr [link][id] - [${1:link}][${2:id}]${3} + [${1:#:link}][${2:id}]${3} snippet linkurl abbr [link](url) - [${1:link}](http://${2:url})${3} + [${1:#:link}](http://${2:#:url})${3} snippet linkemail abbr [link](email) - [${1:link}](mailto:${2:email})${3} + [${1:#:link}](mailto:${2:#:email})${3} snippet linkurltitle abbr [link](url "title") - [${1:link}](${2:url} "${3:title}")${4} + [${1:#:link}](${2:#:url} "${3:#:title}")${4} snippet idurl abbr [id]: url "title" - [${1:id}]: http://${2:url} "${3:title}" + [${1:#:id}]: http://${2:#:url} "${3:#:title}" snippet idemail abbr [id]: email "title" - [${1:id}]: mailto:${2:url} "${3:title}" + [${1:#:id}]: mailto:${2:#:url} "${3:#:title}" snippet altid abbr ![alt][id] - ![${1:alt}][${2:id}]${3} + ![${1:#:alt}][${2:#:id}]${3} snippet alturl abbr ![alt](url) - ![${1:alt}](${2:url})${3} + ![${1:#:alt}](${2:#:url})${3} snippet alturltitle abbr ![alt](url "title") - ![${1:alt}](${2:url} "${3:title}")${4} + ![${1:#:alt}](${2:#:url} "${3:#:title}")${4} snippet emphasis1 abbr *emphasis* @@ -49,3 +49,4 @@ abbr __strong__ snippet code abbr `code` \`${1}\`${2} + diff --git a/autoload/neosnippet/snippets/objc.snip b/autoload/neosnippet/snippets/objc.snip index 0f3a10d..83b1037 100644 --- a/autoload/neosnippet/snippets/objc.snip +++ b/autoload/neosnippet/snippets/objc.snip @@ -1,5 +1,5 @@ snippet sel - @selector(${1:method}:) + @selector(${1:#:method}:) snippet imp @@ -31,7 +31,6 @@ abbr Class return self; } @end - snippet cli abbr ClassInterface @@ -40,7 +39,6 @@ abbr ClassInterface } ${0} @end - snippet clm abbr ClassImplementation @@ -53,7 +51,6 @@ abbr ClassImplementation return self; } @end - snippet cat abbr Category @@ -63,61 +60,56 @@ abbr Category @implementation ${1} (${2}) ${0} @end - snippet cati abbr CategoryInterface @interface ${1:NSObject)} (${2:Category)}) ${0} @end - snippet array - NSMutableArray *${1:array} = [NSMutableArray array]; + NSMutableArray *${1:#:array} = [NSMutableArray array]; snippet dict - NSMutableDictionary *${1:dict} = [NSMutableDictionary dictionary]; + NSMutableDictionary *${1:#:dict} = [NSMutableDictionary dictionary]; snippet bez - NSBezierPath *${1:path} = [NSBezierPath bezierPath]; - ${0} - + NSBezierPath *${1:#:path} = [NSBezierPath bezierPath]; snippet m abbr Method - - (${1:id})${2:method}${3:(id)}${4:anArgument} + - (${1:#:id})${2:#:method}${3:(#:id)}${4:#:anArgument} { - ${0} + ${0} return nil; } - snippet M abbr Method - - (${1:id})${2:method}${3:(id)}${4:anArgument}; + - (${1:#:id})${2:#:method}${3:(#:id)}${4:#:anArgument}; snippet cm abbr ClassMethod - + (${1:id})${2:method}${3:(id)}${4:anArgument} + + (${1:#:id})${2:#:method}${3:(#:id)}${4:#:anArgument} { - ${0} + ${0} return nil; } snippet icm abbr InterfaceClassMethod - + (${1:id})${0:method}; + + (${1:#:id})${0:#:method}; snippet sm abbr SubMethod - - (${1:id})${2:method}${3:(id)}${4:anArgument} + - (${1:#:id})${2:#:method}${3:(#:id)}${4:#:anArgument} { - ${1} res = [super ${2:method}] + ${1} res = [super ${2:#:method}] return res; } @@ -130,10 +122,9 @@ abbr MethodInitialize ${0}@"value", @"key", nil]]; } - snippet obj - - (${1:id})${2:thing} + - (${1:#:id})${2:#:thing} { return ${2}; } @@ -147,12 +138,11 @@ snippet obj snippet iobj - - (${1:id})${2:thing}; + - (${1:#:id})${2:#:thing}; - (void)set${2}:(${1})aValue; - snippet str - - (NSString${$1: *)})${1:thing} + - (NSString${$1: *)})${1:#:thing} { return ${2}; } @@ -163,39 +153,36 @@ snippet str [${2} release]; ${2} = ${3}; } - snippet istr - - (NSString${1: *)}${1:thing}; + - (NSString${1: *)}${1:#:thing}; - (void)set${1}:(NSString${2: *})${2}; - snippet cd abbr CoreData - - (${1:id})${2:attribute} + - (${1:#:id})${2:#:attribute} { - [self willAccessValueForKey:@"${2: attribute}"]; - ${1:id} value = [self primitiveValueForKey:@"${2: attribute}"]; - [self didAccessValueForKey:@"${2: attribute}"]; + [self willAccessValueForKey:@"$2"]; + $1 value = [self primitiveValueForKey:@"$2"]; + [self didAccessValueForKey:@"$2"]; return value; } - - (void)set${2}:(${1})aValue + - (void)set$2:($1)aValue { - [self willChangeValueForKey:@"${2: attribute}"]; - [self setPrimitiveValue:aValue forKey:@"${2: attribute}"]; - [self didChangeValueForKey:@"${2: attribute}"]; + [self willChangeValueForKey:@"$2"]; + [self setPrimitiveValue:aValue forKey:@"$2"]; + [self didChangeValueForKey:@"$2"]; } - snippet karray abbr KVCArry - - (void)addObjectTo${1:Things}:(${2:id})anObject + - (void)addObjectTo${1:#:Things}:(${2:#:id})anObject { [${3}} addObject:anObject]; } - - (void)insertObject:(${2})anObject in${1}AtIndex:(unsigned int)i + - (void)insertObject:($2)anObject in$1AtIndex:(unsigned int)i { [${3} insertObject:anObject atIndex:i]; } @@ -233,7 +220,7 @@ abbr KVCArry snippet iarray abbr InterfaceAccessorsForKVCArray - - (void)addObjectTo${1:Things}:(${2:id})anObject; + - (void)addObjectTo${1:#:Things}:(${2:#:id})anObject; - (void)insertObject:(${2})anObject in${1}AtIndex:(unsigned int)i; - (${2})objectIn${1}AtIndex:(unsigned int)i; - (unsigned int)indexOfObjectIn${1}:(${2})anObject; @@ -245,7 +232,7 @@ abbr InterfaceAccessorsForKVCArray snippet acc abbr PrimitiveType - - (${1:unsigned int})${2:thing} + - (${1:unsigned int})${2:#:thing} { return ${3}; } @@ -260,7 +247,6 @@ snippet iacc abbr Interface:AccessorsForPrimitiveType - (${1:unsigned int})${2:thing}; - (void)set${2}:($1)new${2}; - snippet rdef abbr ReadDefaultsValue @@ -278,11 +264,11 @@ abbr IBOutlet snippet syn - @synthesize ${1:property}; + @synthesize ${1:#:property}; snippet bind - bind:@"${2:binding}" toObject:${3:observableController} withKeyPath:@"${4:keyPath}" options:${5:nil} + bind:@"${2:#:binding}" toObject:${3:observableController} withKeyPath:@"${4:keyPath}" options:${5:nil} snippet reg @@ -293,7 +279,6 @@ snippet focus [self lockFocus]; ${0} [self unlockFocus]; - snippet forarray unsigned int ${1:object}Count = [${2:array} count]; @@ -303,7 +288,6 @@ snippet forarray ${3:id} ${1} = [${2} objectAtIndex:index]; ${0} } - snippet alert int choice = NSRunAlertPanel(@"${1:Something important!}", @"${2:Something important just happend, and now I need to ask you, do you want to continue?}", @"${3:Continue}", @"${4:Cancel}", nil); @@ -315,7 +299,6 @@ snippet alert { } - snippet res ${1} Send ${2} to ${1}, if ${1} supports it}${3} @@ -323,7 +306,6 @@ snippet res { [${1} ${3}]; } - snippet del if([${1:[self delegate]} respondsToSelector:@selector(${2:selfDidSomething:})]) @@ -341,12 +323,11 @@ snippet save snippet thread - [NSThread detachNewThreadSelector:@selector(${1:method}:) toTarget:${2:aTarget} withObject:${3:anArgument}] + [NSThread detachNewThreadSelector:@selector(${1:#:method}:) toTarget:${2:#:aTarget} withObject:${3:#:anArgument}] snippet pool NSAutoreleasePool${TM_C_POINTER: *}pool = [NSAutoreleasePool new]; ${0} [pool drain]; - - \ No newline at end of file + diff --git a/autoload/neosnippet/snippets/perl.snip b/autoload/neosnippet/snippets/perl.snip index 76186c4..0ffe3ab 100644 --- a/autoload/neosnippet/snippets/perl.snip +++ b/autoload/neosnippet/snippets/perl.snip @@ -1,76 +1,77 @@ snippet perl #!/opt/local/bin/perl - + use strict; use warnings; ${1} snippet sub - sub ${1:function_name} { - ${2:# body...} + sub ${1:#:function_name} { + ${2:TARGET} } snippet if - if (${1}) { - ${2:# body...} + if (${1:#:condition}) { + ${2:TARGET} } snippet ife - if (${1}) { - ${2:# body...} + if (${1:#:condition}) { + ${2:TARGET} } else { - ${3:# else...} + ${3:#:else...} } snippet ifee - if (${1}) { - ${2:# body...} + if (${1:#:condition}) { + ${2:TARGET} } elsif (${3}) { - ${4:# elsif...} + ${4:#:elsif...} } else { - ${5:# else...} + ${5:#:else...} } snippet xif - ${1:expression} if ${2:condition}; + ${1:#:expression} if ${2:#:condition}; snippet while abbr wh - while (${1}) { - ${2:# body...} + while (${1:#:condition}) { + ${2:TARGET} } - + snippet xwhile abbr xwh - ${1:expression} while ${2:condition}; + ${1:#:expression} while ${2:#:condition}; snippet for - for (my $${1:var} = 0; $$1 < ${2:expression}; $$1++) { - ${3:# body...} + for (my $${1:#:var} = 0; $$1 < ${2:#:expression}; $$1++) { + ${3:TARGET} } - + snippet fore - for ${1} (${2:expression}){ - ${3:# body...} + for ${1} (${2:#:expression}){ + ${3:TARGET} } snippet xfor - ${1:expression} for @${2:array}; + ${1:#:expression} for @${2:#:array}; snippet unless abbr un - unless (${1}) { - ${2:# body...} + unless (${1:condition}) { + ${2:TARGET} } snippet xunless abbr xun - ${1:expression} unless ${2:condition}; + ${1:#:expression} unless ${2:#:condition}; snippet eval eval { - ${1:# do something risky...} + ${1:TARGET} }; if ($@) { - ${2:# handle failure...} + ${2:#:handle failure...} } + diff --git a/autoload/neosnippet/snippets/php.snip b/autoload/neosnippet/snippets/php.snip index a063e11..0238b80 100644 --- a/autoload/neosnippet/snippets/php.snip +++ b/autoload/neosnippet/snippets/php.snip @@ -1,13 +1,13 @@ snippet function abbr function () {} - ${1:public }function ${2:FunctionName}(${3}) + ${1:public }function ${2:#:FunctionName}(${3}) { - ${4:// code...} + ${4:TARGET} } snippet php snippet pecho @@ -17,20 +17,20 @@ snippet echoh ${0} snippet pfore - }): ?> - ${0} + }): ?> + ${0:TARGET} snippet pife - - ${2} + + ${2:TARGET} ${0} snippet pif - - ${0} + + ${0:TARGET} snippet pelse @@ -44,21 +44,21 @@ snippet ethis snippet docc /** - * ${3:undocumented class variable} + * ${3:#:undocumented class variable} * - * @var ${4:string} + * @var ${4:#:string} **/ - ${1:var} $${2};${0} + ${1:#:var} $${2};${0} snippet docd /** - * ${3:undocumented constant} + * ${3:#:undocumented constant} **/ define(${1} ${2});${0} snippet docs /** - * ${4:undocumented function} + * ${4:#:undocumented function} * * @return ${5:void} * @author ${6} @@ -67,14 +67,14 @@ snippet docs snippet docf /** - * ${4:undocumented function} + * ${4:#:undocumented function} * * @return ${5:void} * @author ${6} **/ ${1}function ${2}(${3}) { - ${0} + ${0:TARGET} } @@ -94,15 +94,15 @@ snippet doch snippet doci /** - * ${2:undocumented class} + * ${2:#:undocumented class} * * @package ${3:default} * @author ${4} **/ interface ${1} { - ${0} - } // END interface ${1} + ${0:TARGET} + } // END interface $1 snippet c /** @@ -113,10 +113,10 @@ snippet class /** * ${1} */ - class ${2:ClassName}${3:extends}} + class ${2:#:ClassName}${3:#:extends}} { $5 - function ${4:__construct}(${5:argument}) + function ${4:__construct}(${5:#:argument}) { ${0:# code...} } @@ -128,73 +128,73 @@ snippet def snippet do do { - ${0:# code...} - } while (${1}); + ${0:TARGET} + } while (${1:#:condition}); -snippet if? - $${1:retVal} = (${2:condition}) ? ${3:a} : ${4:b} ; +snippet if? + $${1:#:retVal} = (${2:#:condition}) ? ${3:#:a} : ${4:#:b}; snippet ifelse - if (${1:condition}) { - ${2:# code...} + if (${1:#:condition}) { + ${2:TARGET} } else { - ${3:# code...} + ${3:#:code...} } ${0} snippet if - if (${1:condition}) { - ${0:# code...} + if (${1:#:condition}) { + ${0:TARGET} } snippet echo - echo "${1:string}"${0}; + echo "${1:#:string}"${0}; snippet else else { - ${0:# code...} + ${0:TARGET} } snippet elseif - elseif (${1:condition}) { - ${0:# code...} + elseif (${1:#:condition}) { + ${0:TARGET} } snippet for - for ($${1:i}=${2:0}; $${1:i} < ${3}; $${1:i}++) { - ${0:# code...} + for ($${1:i}=${2:0}; $$1 < ${3}; $$1++) { + ${0:TARGET} } snippet fore - foreach ($${1:variable} as $${2:key}${3: =>} $${4:value}) { - ${0:# code...} + foreach ($${1:#:variable} as $${2:#:key}${3: =>} $${4:#:value}) { + ${0:TARGET} } snippet con function __construct(${1}) { - ${0} + ${0:TARGET} } snippet here <<<${1:HTML} - ${2:content here} + ${2:TARGET:#:content here} $1; snippet inc - include '${1:file}';${0} + include '${1:#:file}';${0} snippet inco - include_once '${1:file}';${0} + include_once '${1:#:file}';${0} snippet array - $${1:arrayName} = array('${2}' => ${3} ${0}); + $${1:#:arrayName} = array('${2}' => ${3} ${0}); snippet req - require '${1:file}';${0} + require '${1:#:file}';${0} snippet reqo - require_once '${1:file}';${0} + require_once '${1:#:file}';${0} snippet ret return${1};${0} @@ -206,55 +206,56 @@ snippet rett return true; snippet case - case '${1:variable}': - ${0:# code...} + case '${1:#:variable}': + ${0:#:code...} break; snippet switch abbr sw - switch (${1:variable}) { - case '${2:value}': - ${3:# code...} + switch (${1:#:variable}) { + case '${2:#:value}': + ${3:#:code...} break; ${0} default: - ${4:# code...} + ${4:#:code...} break; } snippet throw - throw new ${1}Exception(${2:"${3:Error Processing Request}"}${4:}); + throw new ${1}Exception(${2:"${3:#:Error Processing Request}"}${4:}); ${0} snippet while abbr wh while (${1}) { - ${0:# code...} + ${0:TARGET} } snippet gloabals - \$GLOBALS['${1:variable}']${2: = }${3:something}${4:;}${0} + \$GLOBALS['${1:#:variable}']${2: = }${3:#:something}${4:;}${0} snippet cookie - \$_COOKIE['${1:variable}'] + \$_COOKIE['${1:#:variable}'] snippet env - \$_ENV['${1:variable}'] + \$_ENV['${1:#:variable}'] snippet files - \$_FILES['${1:variable}'] + \$_FILES['${1:#:variable}'] snippet get - \$_GET['${1:variable}'] + \$_GET['${1:#:variable}'] snippet post - \$_POST['${1:variable}'] + \$_POST['${1:#:variable}'] snippet request - \$_REQUEST['${1:variable}'] + \$_REQUEST['${1:#:variable}'] snippet server - \$_SERVER['${1:variable}'] + \$_SERVER['${1:#:variable}'] snippet session - \$_SESSION['${1:variable}'] + \$_SESSION['${1:#:variable}'] + diff --git a/autoload/neosnippet/snippets/python.snip b/autoload/neosnippet/snippets/python.snip index 6d5489f..d8b7e7f 100644 --- a/autoload/neosnippet/snippets/python.snip +++ b/autoload/neosnippet/snippets/python.snip @@ -18,27 +18,27 @@ snippet def abbr def function(...): ... options head def ${1:#:name}(${2}): - ${0} + ${0:TARGET} snippet defd abbr def function(...): """...""" options head def ${1:#:name}(${2}): """${3:#:function documentation}""" - ${0} + ${0:TARGET} snippet defm abbr def method(self, ...): ... options head def ${1:#:name}(self, ${2}): - ${0} + ${0:TARGET} snippet defmd abbr def method(self, ...): "..." options head - def ${1:name}(self, ${2}): + def ${1:#:name}(self, ${2}): """${3:#:method documentation}""" - ${0} + ${0:TARGET} snippet elif abbr elif ...: ... @@ -58,7 +58,7 @@ options head ${1:f} = None try: $1 = open(${2}) - ${0} + ${0:TARGET} finally: if $1: $1.close() @@ -67,25 +67,25 @@ snippet for abbr for ... in ...: ... options head for ${1:#:value} in ${2:#:list}: - ${0} + ${0:TARGET} snippet if abbr if ...: ... options head if ${1:#:condition}: - ${0} + ${0:TARGET} snippet ifmain abbr if __name__ == '__main__': ... options head if __name__ == '__main__': - ${0} + ${0:TARGET} snippet tryexcept abbr try: ... except ...: ... options head try: - ${1} + ${1:TARGET} except ${2:#:ExceptionClass}: ${3} @@ -93,7 +93,7 @@ snippet tryfinally abbr try: ... finally: ... options head try: - ${1} + ${1:TARGET} finally: ${2} @@ -101,5 +101,5 @@ snippet while abbr while ...: ... options head while ${1:#:condition}: - ${0} + ${0:TARGET} diff --git a/autoload/neosnippet/snippets/rails.snip b/autoload/neosnippet/snippets/rails.snip index 94759e3..5567bd6 100644 --- a/autoload/neosnippet/snippets/rails.snip +++ b/autoload/neosnippet/snippets/rails.snip @@ -161,3 +161,4 @@ abbr :object => snippet partial abbr :partial => :partial => + diff --git a/autoload/neosnippet/snippets/ruby.snip b/autoload/neosnippet/snippets/ruby.snip index b9598a5..6630f04 100644 --- a/autoload/neosnippet/snippets/ruby.snip +++ b/autoload/neosnippet/snippets/ruby.snip @@ -1,52 +1,52 @@ snippet if abbr if ... end - if ${1:condition} - ${2} + if ${1:#:condition} + ${2:TARGET} end snippet def abbr def ... end - def ${1:method_name} - ${2} + def ${1:#:method_name} + ${2:TARGET} end snippet defrescue alias defr abbr def ... rescue ... end - def ${1:method_name} - ${2} - rescue ${3:StandardError} => ${4:error} + def ${1:#:method_name} + ${2:TARGET} + rescue ${3:#:StandardError} => ${4:error} ${5} end snippet do abbr do ... end do - ${1} + ${1:TARGET} end snippet dovar abbr do |var| ... end - do |${1:var}| - ${2} + do |${1:#:var}| + ${2:TARGET} end snippet block abbr { ... } { - ${1} + ${1:TARGET} } snippet blockvar abbr {|var| ... } - {|${1:var}| - ${2} + {|${1:#:var}| + ${2:TARGET} } snippet fileopen abbr File.open(filename) do ... end - File.open(${1:filename}, '${2:w}') do |${3:io}| - ${0} + File.open(${1:#:filename}, '${2:#:mode}') do |${3:io}| + ${0:TARGET} end snippet edn diff --git a/autoload/neosnippet/snippets/scala.snip b/autoload/neosnippet/snippets/scala.snip index 2a00959..1671ee6 100644 --- a/autoload/neosnippet/snippets/scala.snip +++ b/autoload/neosnippet/snippets/scala.snip @@ -8,7 +8,7 @@ snippet try abbr try {} catch { case ... } options head try { - ${1} + ${1:TARGET} } catch { case e${2:: Exception} => ${0} } @@ -19,13 +19,13 @@ abbr println() snippet pn abbr println('name, name) - println('${1:name}, $1) + println('${1:#:name}, $1) snippet main abbr def main(args: Array[String]) { options head def main(args: Array[String]) { - ${0} + ${0:TARGET} } snippet hello @@ -39,3 +39,4 @@ options head # scala's indent plugin doesn't work well. use hard-tab for this snippet. # vim: set noexpandtab : + diff --git a/autoload/neosnippet/snippets/sh.snip b/autoload/neosnippet/snippets/sh.snip index edcd1e0..7d43400 100644 --- a/autoload/neosnippet/snippets/sh.snip +++ b/autoload/neosnippet/snippets/sh.snip @@ -1,50 +1,48 @@ snippet if - if [ ${1:condition} ]; then - ${0:#statements} + if [ ${1:#:condition} ]; then + ${0:TARGET} fi snippet el else - ${0:#statements} + ${0:TARGET} snippet elif - elif [ ${1:condition} ]; then - ${0:#statements} + elif [ ${1:#:condition} ]; then + ${0:TARGET} snippet for - for ${1:i} in ${2:words}; do - ${0:#statements} + for ${1:i} in ${2:#:words}; do + ${0:TARGET} done - snippet wh abbr while - while ${1:condition} ; do - ${0:#statements} + while ${1:#:condition} ; do + ${0:TARGET} done snippet until - until ${1:condition} ; do - ${0:#statements} + until ${1:#:condition} ; do + ${0:TARGET} done snippet case - case ${1:word} in - ${2:pattern} ) + case ${1:#:word} in + ${2:#:pattern} ) ${0} - ;; + ;; esac - - -snippet h + +snippet here +alias h <<${1} - ${0} - + ${0:TARGET} snippet env #!/usr/bin/env ${1} @@ -55,5 +53,5 @@ snippet tmp trap "rm -f '$${1}'" 0 # EXIT trap "rm -f '$${1}'; exit 1" 2 # INT trap "rm -f '$${1}'; exit 1" 1 15 # HUP TERM - ${0} - \ No newline at end of file + ${0} + diff --git a/autoload/neosnippet/snippets/snippet.snip b/autoload/neosnippet/snippets/snippet.snip index cb9b6fa..357ee5d 100644 --- a/autoload/neosnippet/snippets/snippet.snip +++ b/autoload/neosnippet/snippets/snippet.snip @@ -2,7 +2,8 @@ snippet snippet abbr snippet abbr options alias snip options head - snippet ${1:trigger} - abbr ${2:abbr} + snippet ${1:#:trigger} + abbr ${2:#:abbr} options head - ${3:snippet code} + ${3:#:TARGET} + diff --git a/autoload/neosnippet/snippets/tex.snip b/autoload/neosnippet/snippets/tex.snip index 6db011d..32c107d 100644 --- a/autoload/neosnippet/snippets/tex.snip +++ b/autoload/neosnippet/snippets/tex.snip @@ -1,209 +1,209 @@ snippet mathexpression abbr $ expression $ - $${1:expression}$${2} + $${1:#:expression}$${2} # ========== ENVIRONMENT ========== snippet begin alias \begin - \begin{${1:type}} - ${2} + \begin{${1:#:type}} + ${2:TARGET} \end{$1} ${0} snippet list alias \begin{list} \begin{list} - ${1} + ${1:TARGET} \end{list} ${0} snippet quotation alias \begin{quotation} \begin{quotation} - ${1} + ${1:TARGET} \end{quotation} ${0} snippet description alias \begin{description} \begin{description} - \item ${1} + \item ${1:TARGET} \end{description} ${0} snippet sloppypar alias \begin{sloppypar} \begin{sloppypar} - ${1} + ${1:TARGET} \end{sloppypar} ${0} snippet enumerate alias \begin{enumerate} \begin{enumerate} - \item ${1} + \item ${1:TARGET} \end{enumerate} ${0} snippet theindex alias \begin{theindex} \begin{theindex} - ${1} + ${1:TARGET} \end{theindex} ${0} snippet itemize alias \begin{itemize} \begin{itemize} - \item ${1} + \item ${1:TARGET} \end{itemize} ${0} snippet titlepage alias \begin{titlepage} \begin{titlepage} - ${1} + ${1:TARGET} \end{titlepage} ${0} snippet verbatim alias \begin{verbatim} \begin{verbatim} - ${1} + ${1:TARGET} \end{verbatim} ${0} snippet verbatimtab alias \begin{verbatimtab} \begin{verbatimtab}[${1:8}] - ${2} + ${2:TARGET} \end{verbatim} ${0} snippet trivlist alias \begin{trivlist} \begin{trivlist} - ${1} + ${1:TARGET} \end{trivlist} ${0} snippet verse alias \begin{verse} \begin{verse} - ${1} + ${1:TARGET} \end{verse} ${0} snippet table alias \begin{table} \begin{table} - ${1} + ${1:TARGET} \end{table} ${0} snippet thebibliography alias \begin{thebibliography} \begin{thebibliography} - ${1} + ${1:TARGET} \end{thebibliography} ${0} snippet tabbing alias \begin{tabbing} \begin{tabbing} - ${1} + ${1:TARGET} \end{tabbing} ${0} snippet note alias \begin{note} \begin{note} - ${1} + ${1:TARGET} \end{note} ${0} snippet tabular alias \begin{tabular} \begin{tabular}{${1}} - ${2} + ${2:TARGET} \end{tabular} ${0} snippet overlay alias \begin{overlay} \begin{overlay} - ${1} + ${1:TARGET} \end{overlay} ${0} snippet array alias \begin{array} \begin{array} - ${1} + ${1:TARGET} \end{array} ${0} snippet slide alias \begin{slide} \begin{slide} - ${1} + ${1:TARGET} \end{slide} ${0} snippet displaymath alias \begin{displaymath} \begin{displaymath} - ${1} + ${1:TARGET} \end{displaymath} ${0} snippet abstract alias \begin{abstract} \begin{abstract} - ${1} + ${1:TARGET} \end{abstract} ${0} snippet eqnarray alias \begin{eqnarray} \begin{eqnarray} - ${1} + ${1:TARGET} \end{eqnarray} ${0} snippet eqnarray* alias \begin{eqnarray*} \begin{eqnarray*} - ${1} + ${1:TARGET} \end{eqnarray} ${0} snippet appendix alias \begin{appendix} \begin{appendix} - ${1} + ${1:TARGET} \end{appendix} ${0} snippet equation alias \begin{equation} \begin{equation} - ${1} + ${1:TARGET} \end{equation} ${0} snippet center alias \begin{center} \begin{center} - ${1} + ${1:TARGET} \end{center} ${0} snippet document alias \begin{document} \begin{document} - ${1} + ${1:TARGET} \end{document} ${0} @@ -221,56 +221,56 @@ alias \begin{figure} snippet filecontents alias \begin{filecontents} \begin{filecontents} - ${1} + ${1:TARGET} \end{filecontents} ${0} snippet lrbox alias \begin{lrbox} \begin{lrbox} - ${1} + ${1:TARGET} \end{lrbox} ${0} snippet flushleft alias \begin{flushleft} \begin{flushleft} - ${1} + ${1:TARGET} \end{flushleft} ${0} snippet minipage alias \begin{minipage} \begin{minipage} - ${1} + ${1:TARGET} \end{minipage} ${0} snippet flushright alias \begin{flushright} \begin{flushright} - ${1} + ${1:TARGET} \end{flushright} ${0} snippet picture alias \begin{picture} \begin{picture} - ${1} + ${1:TARGET} \end{picture} ${0} snippet math alias \begin{math} \begin{math} - ${1} + ${1:TARGET} \end{math} ${0} snippet quote alias \begin{quote} \begin{quote} - ${1} + ${1:TARGET} \end{quote} ${0} @@ -279,33 +279,33 @@ alias \begin{quote} snippet part alias \begin{part} \begin{part} - ${1} + ${1:TARGET} \end{part} ${0} snippet chapter alias \begin{chapter} \begin{chapter} - ${1} + ${1:TARGET} \end{chapter} ${0} snippet \chapter alias \chapter{ \chapter{${1}} - ${0} + ${0:TARGET} snippet section alias \begin{section} \begin{section} - ${1} + ${1:TARGET} \end{section} ${0} snippet \section alias \section{ \section{${1}} - ${0} + ${0:TARGET} snippet subsection alias \begin{subsection} @@ -317,98 +317,98 @@ alias \begin{subsection} snippet \subsection alias \subsection{ \subsection{${1}} - ${0} + ${0:TARGET} snippet subsubsection alias \begin{subsubsection} \begin{subsubsection} - ${1} + ${1:TARGET} \end{subsubsection} ${0} snippet \subsubsection alias \subsubsection{ \subsubsection{${1}} - ${0} + ${0:TARGET} snippet paragraph alias \begin{paragraph} \begin{paragraph} - ${1} + ${1:TARGET} \end{paragraph} ${0} snippet \paragraph alias \paragraph{ \paragraph{${1}} - ${0} + ${0:TARGET} snippet subparagraph alias \begin{subparagraph} \begin{subparagraph} - ${1} + ${1:TARGET} \end{subparagraph} ${0} snippet \subparagraph alias \subparagraph{ \subparagraph{${1}} - ${0} + ${0:TARGET} # ========== FONT ========== snippet bfseries alias \begin{bfseries} \begin{bfseries} - ${1} + ${1:TARGET} \end{bfseries} snippet mdseries alias \begin{mdseries} \begin{mdseries} - ${1} + ${1:TARGET} \end{mdseries} snippet ttfamily alias \begin{ttfamily} \begin{ttfamily} - ${1} + ${1:TARGET} \end{ttfamily} snippet sffamily alias \begin{sffamily} \begin{sffamily} - ${1} + ${1:TARGET} \end{sffamily} snippet rmfamily alias \begin{rmfamily} \begin{rmfamily} - ${1} + ${1:TARGET} \end{rmfamily} snippet upshape alias \begin{upshape} \begin{upshape} - ${1} + ${1:TARGET} \end{upshape} snippet slshape alias \begin{slshape} \begin{slshape} - ${1} + ${1:TARGET} \end{slshape} snippet scshape alias \begin{scshape} \begin{scshape} - ${1} + ${1:TARGET} \end{scshape} snippet itshape alias \begin{itshape} \begin{itshape} - ${1} + ${1:TARGET} \end{itshape} # ========== OTHERS ========== diff --git a/autoload/neosnippet/snippets/vim.snip b/autoload/neosnippet/snippets/vim.snip index 52e6242..384a578 100644 --- a/autoload/neosnippet/snippets/vim.snip +++ b/autoload/neosnippet/snippets/vim.snip @@ -7,7 +7,7 @@ options head snippet elseif options head - elseif ${1:/* condition */} + elseif ${1:#:condition} ${0:TARGET} snippet ifelse @@ -84,7 +84,7 @@ options head snippet augroup abbr augroup with autocmds options head - augroup ${1} + augroup ${1:#:augroup_name} autocmd! autocmd ${2:#:event} augroup END diff --git a/autoload/neosnippet/snippets/xhtml.snip b/autoload/neosnippet/snippets/xhtml.snip index 3f0558c..a54a123 100644 --- a/autoload/neosnippet/snippets/xhtml.snip +++ b/autoload/neosnippet/snippets/xhtml.snip @@ -1,22 +1,23 @@ snippet doctypetransitional snippet doctypeframeset snippet doctypestrict snippet xhtml - ${1} + ${1:TARGET} + snippet head @@ -40,16 +41,16 @@ snippet metadescription snippet scriptcharset ${3} snippet script ${2} snippet body - ${1} + ${1:TARGET} snippet h @@ -65,29 +66,29 @@ snippet hr
snippet comment - ${2} + ${2} snippet b - ${1}${2} + ${1:TARGET}${2} snippet small - ${1}${2} + ${1:TARGET}${2} snippet strong - ${1}${2} + ${1:TARGET}${2} snippet sub - ${1}${2} + ${1:TARGET}${2} snippet sup - ${1}${2} + ${1:TARGET}${2} snippet ins - ${1}${2} + ${1:TARGET}${2} snippet del - ${1}${2} + ${1:TARGET}${2} snippet em - ${1}${2} + ${1:TARGET}${2} snippet bdo - ${2}${3} + ${2:TARGET}${3} snippet pre
-    ${1}
+    ${1:TARGET}
     
${2} snippet blockquote
@@ -109,66 +110,66 @@ snippet bgcolor bgcolor="${1}"${2} snippet ahref - ${2}${3} + ${2:TARGET}${3} snippet ahref_blank - ${2}${3} + ${2:TARGET}${3} snippet ahref_parent - ${2}${3} + ${2:TARGET}${3} snippet ahref_top - ${2}${3} + ${2:TARGET}${3} snippet aname - ${2}${3} + ${2:TARGET}${3} snippet framesetcols - ${2} + ${2:TARGET} ${3} snippet framesetrows ${3} snippet iframe ${2} snippet table - ${2} + ${2:TARGET}
${3} snippet th - ${1}${2} + ${1:TARGET}${2} snippet ulsquare -
    ${1}
${2} +
    ${1:TARGET}
${2} snippet ulcircle -
    ${1}
${2} +
    ${1:TARGET}
${2} snippet uldisc -
    ${1}
${2} +
    ${1:TARGET}
${2} snippet ol -
    ${1}
${2} +
    ${1:TARGET}
${2} snippet olA -
    ${1}
${2} +
    ${1:TARGET}
${2} snippet ola -
    ${1}
${2} +
    ${1:TARGET}
${2} snippet olI -
    ${1}
${2} +
    ${1:TARGET}
${2} snippet oli -
    ${1}
${2} +
    ${1:TARGET}
${2} snippet li -
  • ${1}
  • ${2} +
  • ${1:TARGET}
  • ${2} snippet dl -
    ${1}
    ${2} +
    ${1:TARGET}
    ${2} snippet dt -
    ${1}
    ${2} +
    ${1:TARGET}
    ${2} snippet dd -
    ${1}
    ${2} +
    ${1:TARGET}
    ${2} snippet form
    - ${1} + ${1:TARGET}
    ${2} snippet inputtext @@ -182,33 +183,33 @@ snippet inputcheckbox snippet textarea ${4} snippet button - ${2} + ${2} snippet select - ${2} + ${2} snippet optgroup - ${2} + ${2:TARGET} ${3} snippet option - ${3} + ${3} snippet label -