Add .sh template and update .vimrc

This commit is contained in:
Gea-Suan Lin
2012-02-23 14:37:02 +08:00
parent c2a0ac35fd
commit ed95c6df5a
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
#!/bin/sh
+4
View File
@@ -48,6 +48,10 @@ function LoadPerlTemplate()
0r ~/.vim/template/production.pl 0r ~/.vim/template/production.pl
normal Gdd normal Gdd
endfunction endfunction
function LoadShellTemplate()
0r ~/.vim/template/production.sh
normal Gdd
endfunction
autocmd BufNewFile *.html call LoadHTMLTemplate() autocmd BufNewFile *.html call LoadHTMLTemplate()
autocmd BufNewFile *.pl call LoadPerlTemplate() autocmd BufNewFile *.pl call LoadPerlTemplate()