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

3
.gitmodules vendored
View File

@@ -1,3 +1,6 @@
[submodule ".vim/bundle/git-vim"] [submodule ".vim/bundle/git-vim"]
path = .vim/bundle/git-vim path = .vim/bundle/git-vim
url = https://github.com/motemen/git-vim url = https://github.com/motemen/git-vim
[submodule ".vim/bundle/snipmate.vim"]
path = .vim/bundle/snipmate.vim
url = https://github.com/msanders/snipmate.vim.git

View File

@@ -1,20 +0,0 @@
<!doctype html>
<!--[if lt IE 7]><html class="ie6"><![endif]-->
<!--[if IE 7]><html class="ie7"><![endif]-->
<!--[if IE 8]><html class="ie8"><![endif]-->
<!--[if IE 9]><html class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html><!--<![endif]-->
<head>
<meta charset="UTF-8">
<title></title>
<!--
<link href="http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css" rel="stylesheet">
-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
</body>
</html>

View File

@@ -1,5 +0,0 @@
<?php
call_user_func(function(){
});

View File

@@ -1,11 +0,0 @@
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
INIT {
}
__END__

18
.vimrc
View File

@@ -35,24 +35,6 @@ highlight Search cterm=none ctermbg=blue
nmap <Esc>[Z <C-w>W nmap <Esc>[Z <C-w>W
nmap <Tab> <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 " other
au BufNewFile,BufRead *.psgi setf perl au BufNewFile,BufRead *.psgi setf perl
au BufNewFile,BufRead *.json setf json au BufNewFile,BufRead *.json setf json