From ed95c6df5aadc6505143329a2f4db4dc98a533b2 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Thu, 23 Feb 2012 14:37:02 +0800 Subject: [PATCH] Add .sh template and update .vimrc --- .vim/template/production.sh | 1 + .vimrc | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 .vim/template/production.sh diff --git a/.vim/template/production.sh b/.vim/template/production.sh new file mode 100644 index 0000000..1a24852 --- /dev/null +++ b/.vim/template/production.sh @@ -0,0 +1 @@ +#!/bin/sh diff --git a/.vimrc b/.vimrc index f03d155..d54831c 100644 --- a/.vimrc +++ b/.vimrc @@ -48,6 +48,10 @@ function LoadPerlTemplate() 0r ~/.vim/template/production.pl normal Gdd endfunction +function LoadShellTemplate() + 0r ~/.vim/template/production.sh + normal Gdd +endfunction autocmd BufNewFile *.html call LoadHTMLTemplate() autocmd BufNewFile *.pl call LoadPerlTemplate()