Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /