2012-12-15 05:05:34 -05:00
|
|
|
if exists("b:did_ftplugin")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let b:did_ftplugin = 1
|
|
|
|
|
2012-12-06 17:34:17 -05:00
|
|
|
"Set the formatter name and arguments for this filetype
|
|
|
|
let s:prgname = "astyle"
|
|
|
|
let s:arguments = "--mode=java --style=ansi"
|
|
|
|
|
|
|
|
"Set the formatprg option, if the formatter is installed
|
|
|
|
"globally or in the formatters/ folder
|
|
|
|
call g:FindFormatter(s:prgname, s:arguments)
|