aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-27 11:37:36 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-27 11:37:36 +0900
commit6b7ab55384011e7478724d24fb99ad1aa2550114 (patch)
tree16725449d611f2b299a8b6c2bc79088a3d9026c6
parentbb2d8561f8d75cff067853af72cb74ae3c441cc6 (diff)
downloadvim-sonictemplate-6b7ab55384011e7478724d24fb99ad1aa2550114.tar.gz
vim-sonictemplate-6b7ab55384011e7478724d24fb99ad1aa2550114.tar.bz2
vim-sonictemplate-6b7ab55384011e7478724d24fb99ad1aa2550114.zip
Add nocomment
-rw-r--r--template/java/base-class-nocomment.java7
-rw-r--r--template/java/base-main-nocomment.java7
2 files changed, 14 insertions, 0 deletions
diff --git a/template/java/base-class-nocomment.java b/template/java/base-class-nocomment.java
new file mode 100644
index 0000000..059fded
--- /dev/null
+++ b/template/java/base-class-nocomment.java
@@ -0,0 +1,7 @@
+{{_lang_util_:package}}
+
+public class {{_expr_:substitute('{{_name_}}', '\w\+', '\u\0', '')}} {
+ public {{_expr_:substitute('{{_name_}}', '\w\+', '\u\0', '')}}() {
+ {{_cursor_}}
+ }
+}
diff --git a/template/java/base-main-nocomment.java b/template/java/base-main-nocomment.java
new file mode 100644
index 0000000..eb6c157
--- /dev/null
+++ b/template/java/base-main-nocomment.java
@@ -0,0 +1,7 @@
+{{_lang_util_:package}}
+
+public class {{_name_}} {
+ public static void main(String[] args) {
+ {{_cursor_}}
+ }
+}