1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:20:04 +08:00
SpaceVim/config/plugins/java_getset.vim
2017-03-06 23:26:26 +08:00

22 lines
604 B
VimL

let g:java_getset_disable_map = 1
let g:javagetset_setterTemplate =
\ "/**\n" .
\ " * Set %varname%.\n" .
\ " *\n" .
\ " * @param %varname% the value to set.\n" .
\ " */\n" .
\ "%modifiers% void %funcname%(%type% %varname%){\n" .
\ " this.%varname% = %varname%;\n" .
\ "}"
let g:javagetset_getterTemplate =
\ "/**\n" .
\ " * Get %varname%.\n" .
\ " *\n" .
\ " * @return %varname% as %type%.\n" .
\ " */\n" .
\ "%modifiers% %type% %funcname%(){\n" .
\ " return %varname%;\n" .
\ "}"
" vim:set et sw=2: