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()