Remove template file and use snipMate

This commit is contained in:
Gea-Suan Lin
2012-04-21 20:31:20 +08:00
parent b2931f5838
commit 4332acef9e
6 changed files with 4 additions and 54 deletions

18
.vimrc
View File

@@ -35,24 +35,6 @@ highlight Search cterm=none ctermbg=blue
nmap <Esc>[Z <C-w>W
nmap <Tab> <C-w>w
"
" template
function LoadHTMLTemplate()
0r ~/.vim/template/production.html
normal Gdd
endfunction
function LoadPHPTemplate()
0r ~/.vim/template/production.php
normal Gdd
endfunction
function LoadPerlTemplate()
0r ~/.vim/template/production.pl
normal Gdd
endfunction
autocmd BufNewFile *.html call LoadHTMLTemplate()
autocmd BufNewFile *.pl call LoadPerlTemplate()
autocmd BufNewFile *.php call LoadPHPTemplate()
"
" other
au BufNewFile,BufRead *.psgi setf perl
au BufNewFile,BufRead *.json setf json