Skip to content

Commit 17798a0

Browse files
committed
Merge pull request ma6174#30 from guodongxiaren/patch-1
修改java程序自动生成的内容
2 parents 21eb3fc + b1655ff commit 17798a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.vimrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func SetTitle()
143143
call append(line(".")+7, "")
144144
endif
145145
" if &filetype == 'java'
146-
" call append(line(".")+6,"public class ".expand("%"))
146+
" call append(line(".")+6,"public class ".strpart(expand("%d"),0,strlen(expand("%"))-5))
147147
" call append(line(".")+7,"")
148148
" endif
149149
"新建文件后,自动定位到文件末尾

0 commit comments

Comments
 (0)