Skip to content

Commit

Permalink
Inserting filenames was not working for java snippets. Fixed by
Browse files Browse the repository at this point in the history
supplying the "$1" argument instead of an empty String.
  • Loading branch information
cinocode committed Jun 9, 2014
1 parent e77a704 commit 0ec9a04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snippets/java.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0ec9a04

Please sign in to comment.