diff --git a/.gitmodules b/.gitmodules index 94bd3b0..77faf19 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/.vim/bundle/snipmate.vim b/.vim/bundle/snipmate.vim new file mode 160000 index 0000000..f5a75d0 --- /dev/null +++ b/.vim/bundle/snipmate.vim @@ -0,0 +1 @@ +Subproject commit f5a75d075d3c005ebe69e3f5e56cf99516e8aa3b diff --git a/.vim/template/production.pl b/.vim/template/production.pl deleted file mode 100644 index a770b40..0000000 --- a/.vim/template/production.pl +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env perl - -use strict; -use warnings; - -use 5.010; - -INIT { -} - -__END__ diff --git a/.vimrc b/.vimrc index 4b30345..6f365bc 100644 --- a/.vimrc +++ b/.vimrc @@ -35,29 +35,6 @@ highlight Search cterm=none ctermbg=blue nmap [Z W nmap 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