Skip to content

Commit

Permalink
update java set title
Browse files Browse the repository at this point in the history
  • Loading branch information
ma6174 committed Aug 27, 2014
1 parent 09e2e6f commit c71d212
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ func SetTitle()
call append(line(".")+6, "#include<stdio.h>")
call append(line(".")+7, "")
endif
" if &filetype == 'java'
" call append(line(".")+6,"public class ".strpart(expand("%d"),0,strlen(expand("%"))-5))
" call append(line(".")+7,"")
" endif
if &filetype == 'java'
call append(line(".")+6,"public class ".strpart(expand("%d"),0,strlen(expand("%"))-5))
call append(line(".")+7,"")
endif
"新建文件后,自动定位到文件末尾
endfunc
autocmd BufNewFile * normal G
Expand Down

0 comments on commit c71d212

Please sign in to comment.