Added java to vimrc Build()

This commit is contained in:
Sage Vaillancourt 2020-02-10 10:04:52 -05:00
parent d316e1b938
commit 38eca201d7
2 changed files with 8 additions and 4 deletions

10
.vimrc
View File

@ -69,6 +69,7 @@ nnoremap <Leader>p :call Build(0)<CR>
nnoremap <Leader>b :call Build(1)<CR> nnoremap <Leader>b :call Build(1)<CR>
function! Build(just_build) function! Build(just_build)
write
if(&ft=='lisp') if(&ft=='lisp')
!clisp % !clisp %
elseif(&ft=='ruby') elseif(&ft=='ruby')
@ -101,13 +102,16 @@ if has("autocmd")
autocmd BufNewFile *.html 11 autocmd BufNewFile *.html 11
autocmd BufNewFile *.lisp 0r ~/.vim/templates/skeleton.lisp autocmd BufNewFile *.lisp 0r ~/.vim/templates/skeleton.lisp
autocmd BufNewFile *.c 9 autocmd BufNewFile *.lisp 9
autocmd BufNewFile *.py 0r ~/.vim/templates/skeleton.py autocmd BufNewFile *.py 0r ~/.vim/templates/skeleton.py
autocmd BufNewFile *.c 9 autocmd BufNewFile *.py 9
autocmd BufNewFile *.rb 0r ~/.vim/templates/skeleton.rb autocmd BufNewFile *.rb 0r ~/.vim/templates/skeleton.rb
autocmd BufNewFile *.c 9 autocmd BufNewFile *.rb 9
autocmd BufNewFile *.java 0r ~/.vim/templates/Skeleton.java
autocmd BufNewFile *.java 9
autocmd BufNewFile makefile 0r ~/.vim/templates/makefile.c autocmd BufNewFile makefile 0r ~/.vim/templates/makefile.c
autocmd BufNewFile *.c 9 autocmd BufNewFile *.c 9

2
.zshrc
View File

@ -2,7 +2,7 @@
# export PATH=$HOME/bin:/usr/local/bin:$PATH # export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation. # Path to your oh-my-zsh installation.
ZSH=/usr/share/oh-my-zsh/ ZSH=~/.oh-my-zsh
# Set name of the theme to load --- if set to "random", it will # Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case, # load a random theme each time oh-my-zsh is loaded, in which case,