diff --git a/fake_home/.vim/templates/skeleton.java b/fake_home/.vim/templates/skeleton.java new file mode 100644 index 0000000..ce9b90f --- /dev/null +++ b/fake_home/.vim/templates/skeleton.java @@ -0,0 +1,5 @@ +class Main { + public static void main(String[] args) { + System.out.println("Hello, World!"); + } +} diff --git a/fake_home/.vimrc b/fake_home/.vimrc index 11ce25a..da0580d 100644 --- a/fake_home/.vimrc +++ b/fake_home/.vimrc @@ -166,6 +166,7 @@ if has ("autocmd") autocmd BufNewFile *.rb 0r ~/.vim/templates/skeleton.rb autocmd BufNewFile *.md 0r ~/.vim/templates/skeleton.md autocmd BufNewFile *.html 0r ~/.vim/templates/skeleton.html + autocmd BufNewFile *.java 0r ~/.vim/templates/skeleton.java autocmd BufNewFile Makefile 0r ~/.vim/templates/Makefile augroup END endif