Skip to content

Commit

Permalink
new java run command
Browse files Browse the repository at this point in the history
  • Loading branch information
theniceboy authored and David Chen committed Apr 15, 2021
1 parent d88cb99 commit 9bc5712
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,10 @@ func! CompileRunGcc()
:res -15
:term ./%<
elseif &filetype == 'java'
exec "!javac %"
exec "!time java %<"
set splitbelow
:sp
:res -5
term javac % && time java %<
elseif &filetype == 'sh'
:!time bash %
elseif &filetype == 'python'
Expand Down

0 comments on commit 9bc5712

Please sign in to comment.