From bf976b49c9fa7604bd208cb3d8dc4d0e4c274641 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Fri, 11 Oct 2013 09:41:55 +0600 Subject: Add vim template plugin. --- .gitmodules | 5 ++++- files/.vim/bundle/vim-template | 1 + files/.vim/templates/template.html | 10 ++++++++++ files/.vim/templates/template.py | 8 ++++++++ files/.vim/templates/template.sh | 1 + files/.vim/templates/template.xml | 4 ++++ files/.vim/templates/template.xsl | 13 +++++++++++++ files/.vimrc | 1 + 8 files changed, 42 insertions(+), 1 deletion(-) create mode 160000 files/.vim/bundle/vim-template create mode 100755 files/.vim/templates/template.html create mode 100755 files/.vim/templates/template.py create mode 100755 files/.vim/templates/template.sh create mode 100755 files/.vim/templates/template.xml create mode 100755 files/.vim/templates/template.xsl diff --git a/.gitmodules b/.gitmodules index 4caa8d3..9501c0b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -20,12 +20,15 @@ [submodule "nerdtree"] path = files/.vim/bundle/nerdtree url = https://github.com/scrooloose/nerdtree +[submodule "vim-template"] + path = files/.vim/bundle/vim-template + url = https://github.com/aperezdc/vim-template [submodule "vim-markdown"] path = files/.vim/bundle/vim-markdown url = https://github.com/plasticboy/vim-markdown.git [submodule "vim-jade"] path = files/.vim/bundle/vim-jade - url = git://github.com/digitaltoad/vim-jade.git + url = https://github.com/digitaltoad/vim-jade.git [submodule "xml.vim"] path = files/.vim/bundle/xml.vim url = https://github.com/othree/xml.vim diff --git a/files/.vim/bundle/vim-template b/files/.vim/bundle/vim-template new file mode 160000 index 0000000..88f7a46 --- /dev/null +++ b/files/.vim/bundle/vim-template @@ -0,0 +1 @@ +Subproject commit 88f7a46a746d8ae28ad1241b3b107e2a44f3467a diff --git a/files/.vim/templates/template.html b/files/.vim/templates/template.html new file mode 100755 index 0000000..84a4f1c --- /dev/null +++ b/files/.vim/templates/template.html @@ -0,0 +1,10 @@ + + + + + %FILE% + + + %HERE% + + diff --git a/files/.vim/templates/template.py b/files/.vim/templates/template.py new file mode 100755 index 0000000..f6f948d --- /dev/null +++ b/files/.vim/templates/template.py @@ -0,0 +1,8 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +def main(): + %HERE% + +if __name__ == '__main__': + main() diff --git a/files/.vim/templates/template.sh b/files/.vim/templates/template.sh new file mode 100755 index 0000000..0774808 --- /dev/null +++ b/files/.vim/templates/template.sh @@ -0,0 +1 @@ +#!/bin/sh diff --git a/files/.vim/templates/template.xml b/files/.vim/templates/template.xml new file mode 100755 index 0000000..af292fc --- /dev/null +++ b/files/.vim/templates/template.xml @@ -0,0 +1,4 @@ + +<%FILE%> + %HERE% + diff --git a/files/.vim/templates/template.xsl b/files/.vim/templates/template.xsl new file mode 100755 index 0000000..c0e54b8 --- /dev/null +++ b/files/.vim/templates/template.xsl @@ -0,0 +1,13 @@ + + + + + + + + + + + + diff --git a/files/.vimrc b/files/.vimrc index d3927fa..1044a3a 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -9,6 +9,7 @@ if has("multi_byte") endif let g:CSApprox_verbose_level=0 +let g:template_dir=$HOME . "/.vim/templates" set encoding=utf-8 -- cgit v1.2.3