From 4332acef9ed7e645843b4d07499f9f0174f40f42 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Sat, 21 Apr 2012 20:31:20 +0800 Subject: [PATCH] Remove template file and use snipMate --- .gitmodules | 3 +++ .vim/bundle/snipmate.vim | 1 + .vim/template/production.html | 20 -------------------- .vim/template/production.php | 5 ----- .vim/template/production.pl | 11 ----------- .vimrc | 18 ------------------ 6 files changed, 4 insertions(+), 54 deletions(-) create mode 160000 .vim/bundle/snipmate.vim delete mode 100644 .vim/template/production.html delete mode 100644 .vim/template/production.php delete mode 100644 .vim/template/production.pl diff --git a/.gitmodules b/.gitmodules index eaaf20e..11107dc 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 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.html b/.vim/template/production.html deleted file mode 100644 index 298d71e..0000000 --- a/.vim/template/production.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/.vim/template/production.php b/.vim/template/production.php deleted file mode 100644 index 675fbb4..0000000 --- a/.vim/template/production.php +++ /dev/null @@ -1,5 +0,0 @@ -[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 - -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