diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-02-25 00:29:39 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-02-25 00:29:39 +0100 |
commit | 9d5d53b221e859b91a28f5a5e456773683cd1bd7 (patch) | |
tree | 8f5b545508ec3178462ea7985ed1dc02d6e15c02 /.vim/snippets/java.snippets | |
parent | 1fbac4bd337f77c37b71de9c7a79c30331af2ffb (diff) | |
download | dotfiles-9d5d53b221e859b91a28f5a5e456773683cd1bd7.tar.gz dotfiles-9d5d53b221e859b91a28f5a5e456773683cd1bd7.tar.xz |
Revert "vim: switch to vim-ultisnips; remove snipmate"
This reverts commit bda1762e2cbba257ff0631f6359badc008fbeac7.
Diffstat (limited to '.vim/snippets/java.snippets')
-rw-r--r-- | .vim/snippets/java.snippets | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/.vim/snippets/java.snippets b/.vim/snippets/java.snippets new file mode 100644 index 0000000..fd705cb --- /dev/null +++ b/.vim/snippets/java.snippets @@ -0,0 +1,78 @@ +snippet main + public static void main (String [] args) + { + ${1:/* code */} + } +snippet pu + public +snippet po + protected +snippet pr + private +snippet st + static +snippet fi + final +snippet ab + abstract +snippet re + return +snippet br + break; +snippet de + default: + ${1} +snippet ca + catch(${1:Exception} ${2:e}) ${3} +snippet th + throw +snippet sy + synchronized +snippet im + import +snippet j.u + java.util +snippet j.i + java.io. +snippet j.b + java.beans. +snippet j.n + java.net. +snippet j.m + java.math. +snippet if + if (${1}) ${2} +snippet el + else +snippet elif + else if (${1}) ${2} +snippet wh + while (${1}) ${2} +snippet for + for (${1}; ${2}; ${3}) ${4} +snippet fore + for (${1} : ${2}) ${3} +snippet sw + switch (${1}) ${2} +snippet cs + case ${1}: + ${2} + ${3} +snippet tc + public class ${1:`Filename()`} extends ${2:TestCase} +snippet t + public void test${1:Name}() throws Exception ${2} +snippet cl + class ${1:`Filename("", "untitled")`} ${2} +snippet in + interface ${1:`Filename("", "untitled")`} ${2:extends Parent}${3} +snippet m + ${1:void} ${2:method}(${3}) ${4:throws }${5} +snippet v + ${1:String} ${2:var}${3: = null}${4};${5} +snippet co + static public final ${1:String} ${2:var} = ${3};${4} +snippet cos + static public final String ${1:var} = "${2}";${3} +snippet as + assert ${1:test} : "${2:Failure message}";${3} |