From 0ec9a04f563086c9e7469401165a3268c29f2594 Mon Sep 17 00:00:00 2001 From: Ole Hansen Date: Mon, 9 Jun 2014 17:29:58 +0200 Subject: [PATCH] Inserting filenames was not working for java snippets. Fixed by supplying the "$1" argument instead of an empty String. --- snippets/java.snippets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snippets/java.snippets b/snippets/java.snippets index 1595ffc..3429a2b 100644 --- a/snippets/java.snippets +++ b/snippets/java.snippets @@ -39,11 +39,11 @@ snippet j.u ## ## Class snippet cl - class ${1:`vim_snippets#Filename("", "untitled")`} ${0} + class ${1:`vim_snippets#Filename("$1", "untitled")`} ${0} snippet in - interface ${1:`vim_snippets#Filename("", "untitled")`} ${2:extends Parent} + interface ${1:`vim_snippets#Filename("$1", "untitled")`} ${2:extends Parent} snippet tc - public class ${1:`vim_snippets#Filename()`} extends ${0:TestCase} + public class ${1:`vim_snippets#Filename("$1")`} extends ${0:TestCase} ## ## Class Enhancements snippet ext @@ -144,7 +144,7 @@ snippet @au snippet @br @brief ${0:Description} snippet @fi - @file ${0:`vim_snippets#Filename()`}.java + @file ${0:`vim_snippets#Filename("$1")`}.java snippet @pa @param ${0:param} snippet @re