vimenv

configure vim environment
git clone git://git.unixkoans.com/vimenv.git
Log | Files | Refs | Submodules

commit 32210ba1bf0f925ea853fe36db931610e9228204
parent d0080be0f2fe1c3437c7aa1a06d6fa650e172faf
Author: Xiaodong Xu <xxdlhy@gmail.com>
Date:   Sun May 20 17:11:55 +0800

Update vim config

Diffstat:
README.md | 5-----
_vim/conf/abbrevs.vim | 9+++++----
_vim/conf/funcs.vim | 25++++++++++++-------------
3 files changed, 17 insertions(+), 22 deletions(-)
diff --git a/README.md b/README.md @@ -19,8 +19,3 @@ Usage -u, --update Update Vim plugins -l, --list List Vim plugins -h, --help Show help - -Author ------- - -Xu Xiaodong diff --git a/_vim/conf/abbrevs.vim b/_vim/conf/abbrevs.vim @@ -1,12 +1,12 @@ " -" author: Xu Xiaodong <xxdlhy@gmail.com> -" modified: 2011 Apr 16 +" author : Xu Xiaodong <xxdlhy@gmail.com> +" modified : 2012 May 20 " "-- abbrevs --" -iab _au author: Xu Xiaodong <xxdlhy@gmail.com> -iab _mo <c-r>="modified: " . strftime("%Y %b %d")<cr> +iab _au author : Xu Xiaodong <xxdlhy@gmail.com> +iab _mo <c-r>="modified : " . strftime("%Y %b %d")<cr> iab _na Xu Xiaodong iab _ma xxdlhy@gmail.com @@ -14,6 +14,7 @@ iab _da <c-r>=strftime("%Y %b %d")<cr> iab _fn <c-r>=bufname("%")<cr> iab _pl #!/usr/bin/env perl +iab _rb #!/usr/bin/env ruby iab _xt http://linuxtoy.org iab _xm <!--more--> diff --git a/_vim/conf/funcs.vim b/_vim/conf/funcs.vim @@ -1,6 +1,6 @@ " -" author: Xu Xiaodong <xxdlhy@gmail.com> -" modified: 2012 May 10 +" author : Xu Xiaodong <xxdlhy@gmail.com> +" modified : 2012 May 20 " "-- update timestamps --" @@ -29,13 +29,12 @@ function! _ruby_head() let filename = bufname("%") let date = strftime("%Y %b %d") exe "normal i#!/usr/bin/env ruby" - exe "normal o# coding: utf-8" exe "normal o#" - exe "normal o# name: " . filename - exe "normal o# author: Xu Xiaodong <xxdlhy@gmail.com>" - exe "normal o# license: GPL" - exe "normal o# created: " . date - exe "normal o# modified: " . date + exe "normal o# name : " . filename + exe "normal o# author : Xu Xiaodong <xxdlhy@gmail.com>" + exe "normal o# license : GPL" + exe "normal o# created : " . date + exe "normal o# modified : " . date exe "normal o#" endfunction @@ -46,11 +45,11 @@ function! _perl_head() let date = strftime("%Y %b %d") exe "normal i#!/usr/bin/env perl" exe "normal o#" - exe "normal o# name: " . filename - exe "normal o# author: Xu Xiaodong <xxdlhy@gmail.com>" - exe "normal o# license: GPL" - exe "normal o# created: " . date - exe "normal o# modified: " . date + exe "normal o# name : " . filename + exe "normal o# author : Xu Xiaodong <xxdlhy@gmail.com>" + exe "normal o# license : GPL" + exe "normal o# created : " . date + exe "normal o# modified : " . date exe "normal o#" endfunction