Remove template file and use snipMate
This commit is contained in:
18
.vimrc
18
.vimrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user