expanding tabs to spaces. it'll indent well with 'expandtab'
This commit is contained in:
parent
9bfd793dfa
commit
8e7e2d4ee4
@ -1,39 +1,31 @@
|
|||||||
snippet pu
|
snippet pu
|
||||||
public
|
public
|
||||||
|
|
||||||
|
|
||||||
snippet po
|
snippet po
|
||||||
protected
|
protected
|
||||||
|
|
||||||
|
|
||||||
snippet pr
|
snippet pr
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|
||||||
snippet st
|
snippet st
|
||||||
static
|
static
|
||||||
|
|
||||||
|
|
||||||
snippet fi
|
snippet fi
|
||||||
final
|
final
|
||||||
|
|
||||||
|
|
||||||
snippet ab
|
snippet ab
|
||||||
abstract
|
abstract
|
||||||
|
|
||||||
|
|
||||||
snippet cl
|
snippet cl
|
||||||
class ${1} ${2:extends} ${3:Parent} ${4:implements} ${5:Interface} {
|
class ${1} ${2:extends} ${3:Parent} ${4:implements} ${5:Interface} {
|
||||||
${0}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
snippet in
|
snippet in
|
||||||
interface ${1} ${2:extends} ${3:Parent} {
|
interface ${1} ${2:extends} ${3:Parent} {
|
||||||
${0}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
snippet m
|
snippet m
|
||||||
${1:void} ${2:method}(${3}) ${4:throws} {
|
${1:void} ${2:method}(${3}) ${4:throws} {
|
||||||
${0}
|
${0}
|
||||||
@ -43,23 +35,18 @@ snippet m
|
|||||||
snippet v
|
snippet v
|
||||||
${1:String} ${2:var}${3};
|
${1:String} ${2:var}${3};
|
||||||
|
|
||||||
|
|
||||||
snippet co
|
snippet co
|
||||||
static public final ${1:String} ${2:var} = ${3};${4}
|
static public final ${1:String} ${2:var} = ${3};${4}
|
||||||
|
|
||||||
|
|
||||||
snippet cos
|
snippet cos
|
||||||
static public final String ${1:var} = "${2}";${4}
|
static public final String ${1:var} = "${2}";${4}
|
||||||
|
|
||||||
|
|
||||||
snippet re
|
snippet re
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
snippet as
|
snippet as
|
||||||
assert ${1:test} ${2:Failure message};${3}
|
assert ${1:test} ${2:Failure message};${3}
|
||||||
|
|
||||||
|
|
||||||
snippet if
|
snippet if
|
||||||
if (${1}) {
|
if (${1}) {
|
||||||
${2}
|
${2}
|
||||||
@ -88,7 +75,6 @@ snippet fore
|
|||||||
${3}
|
${3}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
snippet sw
|
snippet sw
|
||||||
switch (${1}) {
|
switch (${1}) {
|
||||||
${2}
|
${2}
|
||||||
@ -105,12 +91,10 @@ abbr ce
|
|||||||
snippet br
|
snippet br
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
snippet de
|
snippet de
|
||||||
default:
|
default:
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
|
|
||||||
snippet ca
|
snippet ca
|
||||||
catch (${1:Exception} ${2:e}) {
|
catch (${1:Exception} ${2:e}) {
|
||||||
${0}
|
${0}
|
||||||
@ -120,19 +104,15 @@ snippet ca
|
|||||||
snippet th
|
snippet th
|
||||||
throw ${0}
|
throw ${0}
|
||||||
|
|
||||||
|
|
||||||
snippet sy
|
snippet sy
|
||||||
synchronized
|
synchronized
|
||||||
|
|
||||||
|
|
||||||
snippet im
|
snippet im
|
||||||
import
|
import
|
||||||
|
|
||||||
|
|
||||||
snippet pa
|
snippet pa
|
||||||
package
|
package
|
||||||
|
|
||||||
|
|
||||||
snippet tc
|
snippet tc
|
||||||
public class ${1} extends ${2:TestCase} {
|
public class ${1} extends ${2:TestCase} {
|
||||||
${0}
|
${0}
|
||||||
@ -153,23 +133,18 @@ snippet imt
|
|||||||
snippet j.u
|
snippet j.u
|
||||||
java.util.
|
java.util.
|
||||||
|
|
||||||
|
|
||||||
snippet j.i
|
snippet j.i
|
||||||
java.io.
|
java.io.
|
||||||
|
|
||||||
|
|
||||||
snippet j.b
|
snippet j.b
|
||||||
java.beans.
|
java.beans.
|
||||||
|
|
||||||
|
|
||||||
snippet j.n
|
snippet j.n
|
||||||
java.net
|
java.net
|
||||||
|
|
||||||
|
|
||||||
snippet j.m
|
snippet j.m
|
||||||
java.math.
|
java.math.
|
||||||
|
|
||||||
|
|
||||||
snippet main
|
snippet main
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
${0}
|
${0}
|
||||||
@ -179,11 +154,9 @@ snippet main
|
|||||||
snippet pl
|
snippet pl
|
||||||
System.out.println(${1});${0}
|
System.out.println(${1});${0}
|
||||||
|
|
||||||
|
|
||||||
snippet p
|
snippet p
|
||||||
System.out.print(${1});${0}
|
System.out.print(${1});${0}
|
||||||
|
|
||||||
|
|
||||||
#javadoc
|
#javadoc
|
||||||
snippet c
|
snippet c
|
||||||
/**
|
/**
|
||||||
@ -194,81 +167,63 @@ snippet c
|
|||||||
snippet a
|
snippet a
|
||||||
@author ${0:$TM_FULLNAME}
|
@author ${0:$TM_FULLNAME}
|
||||||
|
|
||||||
|
|
||||||
snippet {code
|
snippet {code
|
||||||
abbr {
|
abbr {
|
||||||
{@code ${0}
|
{@code ${0}
|
||||||
|
|
||||||
|
|
||||||
snippet d
|
snippet d
|
||||||
@deprecated ${0:description}
|
@deprecated ${0:description}
|
||||||
|
|
||||||
|
|
||||||
snippet {docRoot
|
snippet {docRoot
|
||||||
abbr {
|
abbr {
|
||||||
{@docRoot
|
{@docRoot
|
||||||
|
|
||||||
|
|
||||||
snippet {inheritDoc
|
snippet {inheritDoc
|
||||||
abbr {
|
abbr {
|
||||||
{@inheritDoc
|
{@inheritDoc
|
||||||
|
|
||||||
|
|
||||||
snippet {link
|
snippet {link
|
||||||
abbr {
|
abbr {
|
||||||
{@link ${1:target} ${0:label}
|
{@link ${1:target} ${0:label}
|
||||||
|
|
||||||
|
|
||||||
snippet {linkplain
|
snippet {linkplain
|
||||||
abbr {
|
abbr {
|
||||||
{@linkplain ${1:target} ${0:label}
|
{@linkplain ${1:target} ${0:label}
|
||||||
|
|
||||||
|
|
||||||
snippet {literal
|
snippet {literal
|
||||||
abbr {
|
abbr {
|
||||||
{@literal ${0}
|
{@literal ${0}
|
||||||
|
|
||||||
|
|
||||||
snippet param
|
snippet param
|
||||||
@param ${1:var} ${0:description}
|
@param ${1:var} ${0:description}
|
||||||
|
|
||||||
|
|
||||||
snippet r
|
snippet r
|
||||||
@return ${0:description}
|
@return ${0:description}
|
||||||
|
|
||||||
|
|
||||||
snippet s
|
snippet s
|
||||||
@see ${0:reference}
|
@see ${0:reference}
|
||||||
|
|
||||||
|
|
||||||
snippet se
|
snippet se
|
||||||
@serial ${0:description}
|
@serial ${0:description}
|
||||||
|
|
||||||
|
|
||||||
snippet sd
|
snippet sd
|
||||||
@serialField ${0:description}
|
@serialField ${0:description}
|
||||||
|
|
||||||
|
|
||||||
snippet sf
|
snippet sf
|
||||||
@serialField ${1:name} ${2:type} ${0:description}
|
@serialField ${1:name} ${2:type} ${0:description}
|
||||||
|
|
||||||
|
|
||||||
snippet si
|
snippet si
|
||||||
@since ${0:version}
|
@since ${0:version}
|
||||||
|
|
||||||
|
|
||||||
snippet t
|
snippet t
|
||||||
@throws ${1:class} ${0:description}
|
@throws ${1:class} ${0:description}
|
||||||
|
|
||||||
|
|
||||||
snippet {value
|
snippet {value
|
||||||
abbr {
|
abbr {
|
||||||
{@value ${0}
|
{@value ${0}
|
||||||
|
|
||||||
|
|
||||||
snippet ver
|
snippet ver
|
||||||
@version ${0:version}
|
@version ${0:version}
|
||||||
|
|
||||||
|
|
||||||
snippet null
|
snippet null
|
||||||
{@code null}
|
{@code null}
|
||||||
|
@ -137,13 +137,13 @@ KEY MAPPINGS *neocomplcache-snippets-complete-key-mappings*
|
|||||||
neocomplcache#sources#snippets_complete#expandable()
|
neocomplcache#sources#snippets_complete#expandable()
|
||||||
*neocomplcache#sources#snippets_complete#expandable()*
|
*neocomplcache#sources#snippets_complete#expandable()*
|
||||||
Use this function with imap <expr>. It checks whether cursor
|
Use this function with imap <expr>. It checks whether cursor
|
||||||
text is snippets trigger or existing placeholder in current
|
text is a snippet trigger or a placeholder exists in the
|
||||||
buffer. Useful for saving keymappings.
|
current buffer. It's useful for saving keymappings.
|
||||||
Return value is
|
Return value is not just a boolean but either
|
||||||
0: not found
|
0: not found
|
||||||
1 : cursor text is snippets trigger
|
1: cursor text is a snippet trigger
|
||||||
2 : existing placeholder in current buffer
|
2: a placeholder exists in the current buffer
|
||||||
3 : both found.
|
3: both found
|
||||||
>
|
>
|
||||||
imap <expr><C-l> neocomplcache#sources#snippets_complete#expandable() ?
|
imap <expr><C-l> neocomplcache#sources#snippets_complete#expandable() ?
|
||||||
\ "\<Plug>(neocomplcache_snippets_expand)" : "\<C-n>"
|
\ "\<Plug>(neocomplcache_snippets_expand)" : "\<C-n>"
|
||||||
@ -151,7 +151,7 @@ neocomplcache#sources#snippets_complete#expandable()
|
|||||||
neocomplcache#sources#snippets_complete#force_expandable()
|
neocomplcache#sources#snippets_complete#force_expandable()
|
||||||
*neocomplcache#sources#snippets_complete#force_expandable()*
|
*neocomplcache#sources#snippets_complete#force_expandable()*
|
||||||
Use this function with imap <expr>. It checks whether cursor
|
Use this function with imap <expr>. It checks whether cursor
|
||||||
text is snippets trigger. Useful for saving keymappings.
|
text is snippet trigger. Useful for saving keymappings.
|
||||||
|
|
||||||
neocomplcache#sources#snippets_complete#jumpable()
|
neocomplcache#sources#snippets_complete#jumpable()
|
||||||
*neocomplcache#sources#snippets_complete#jumpable()*
|
*neocomplcache#sources#snippets_complete#jumpable()*
|
||||||
@ -308,6 +308,7 @@ CHANGELOG *neocomplcache-snippets-complete-changelog*
|
|||||||
|
|
||||||
2012-09-27
|
2012-09-27
|
||||||
- Improved add placeholder behavior.
|
- Improved add placeholder behavior.
|
||||||
|
- Fixed wrong indentation when 'expandtab'.
|
||||||
|
|
||||||
2012-09-23
|
2012-09-23
|
||||||
- Fixed substitute tab character.
|
- Fixed substitute tab character.
|
||||||
|
Loading…
Reference in New Issue
Block a user