Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b35c74

Browse files
committed
Update .vimrc
1 parent b160ba5 commit 9b35c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.vimrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func SetTitle()
149149
call append(line(".")+7, "")
150150
endif
151151
if &filetype == 'java'
152-
call append(line(".")+6,"public class ".strpart(expand("%d"),0,strlen(expand("%"))-5))
152+
call append(line(".")+6,"public class ".expand("%:r"))
153153
call append(line(".")+7,"")
154154
endif
155155
"新建文件后,自动定位到文件末尾

0 commit comments

Comments
 (0)