From 38eca201d71738e6f5ebafc115ea6f23c9c853d7 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Mon, 10 Feb 2020 10:04:52 -0500 Subject: [PATCH] Added java to vimrc Build() --- .vimrc | 10 +++++++--- .zshrc | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.vimrc b/.vimrc index 6d05f48..e7b0004 100644 --- a/.vimrc +++ b/.vimrc @@ -69,6 +69,7 @@ nnoremap p :call Build(0) nnoremap b :call Build(1) 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 diff --git a/.zshrc b/.zshrc index a06a17b..32957a1 100644 --- a/.zshrc +++ b/.zshrc @@ -2,7 +2,7 @@ # export PATH=$HOME/bin:/usr/local/bin:$PATH # 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 # load a random theme each time oh-my-zsh is loaded, in which case,