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>
|
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
2
.zshrc
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue