From 46259b8b8ed0631b85660f1656a4f13cec9e2cfe Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Thu, 27 Oct 2011 17:25:08 +0800 Subject: [PATCH] Add PHP/Perl template --- .vim/template/production.php | 5 +++++ .vim/template/production.pl | 11 +++++++++++ .vimrc | 11 +++++++++++ 3 files changed, 27 insertions(+) create mode 100644 .vim/template/production.php create mode 100644 .vim/template/production.pl diff --git a/.vim/template/production.php b/.vim/template/production.php new file mode 100644 index 0000000..675fbb4 --- /dev/null +++ b/.vim/template/production.php @@ -0,0 +1,5 @@ +[Z W nmap w " +" template +function LoadPHPTemplate() + 0r ~/.vim/template/production.pl +endfunction +function LoadPerlTemplate() + 0r ~/.vim/template/production.php +endfunction + +autocmd BufNewFile *.pl call LoadPerlTemplate() +autocmd BufNewFile *.php call LoadPHPTemplate() +" " other au BufNewFile,BufRead *.psgi setf perl au BufNewFile,BufRead Makefile set noexpandtab