This commit is contained in:
Gea-Suan Lin
2012-04-28 03:24:27 +08:00
4 changed files with 4 additions and 34 deletions

3
.gitmodules vendored
View File

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

View File

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

23
.vimrc
View File

@@ -35,29 +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
function LoadShellTemplate()
0r ~/.vim/template/production.sh
normal Gdd
endfunction
autocmd BufNewFile *.html call LoadHTMLTemplate()
autocmd BufNewFile *.pl call LoadPerlTemplate()
autocmd BufNewFile *.php call LoadPHPTemplate()
autocmd BufNewFile *.sh call LoadShellTemplate()
"
" other
au BufNewFile,BufRead *.mk set noexpandtab
au BufNewFile,BufRead *.json setf json