Added java to vimrc Build()
This commit is contained in:
parent
d316e1b938
commit
38eca201d7
10
.vimrc
10
.vimrc
|
@ -69,6 +69,7 @@ nnoremap <Leader>p :call Build(0)<CR>
|
|||
nnoremap <Leader>b :call Build(1)<CR>
|
||||
|
||||
function! Build(just_build)
|
||||
write
|
||||
if(&ft=='lisp')
|
||||
!clisp %
|
||||
elseif(&ft=='ruby')
|
||||
|
@ -101,13 +102,16 @@ if has("autocmd")
|
|||
autocmd BufNewFile *.html 11
|
||||
|
||||
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 *.c 9
|
||||
autocmd BufNewFile *.py 9
|
||||
|
||||
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 *.c 9
|
||||
|
|
Loading…
Reference in New Issue