Remove template file and use snipMate
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +1,6 @@
|
||||
[submodule ".vim/bundle/git-vim"]
|
||||
path = .vim/bundle/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
|
||||
|
||||
1
.vim/bundle/snipmate.vim
Submodule
1
.vim/bundle/snipmate.vim
Submodule
Submodule .vim/bundle/snipmate.vim added at f5a75d075d
@@ -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>
|
||||
@@ -1,5 +0,0 @@
|
||||
<?php
|
||||
|
||||
call_user_func(function(){
|
||||
});
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/usr/bin/env perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use 5.010;
|
||||
|
||||
INIT {
|
||||
}
|
||||
|
||||
__END__
|
||||
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