"============================================================================= " Author: dantezhu - http://www.vimer.cn " Email: zny2008@gmail.com " FileName: authorinfo.vim " Description: " Version: 1.5 " LastChange: 2011-02-23 16:42:42 " History: support bash's #!xxx " fix bug for NerdComment's "============================================================================= if exists('g:loaded_authorinfo') finish endif let g:loaded_authorinfo= 1 if exists("mapleader") let s:t_mapleader = mapleader elseif exists("g:mapleader") let s:t_mapleader = g:mapleader else let s:t_mapleader = '\' endif function! g:CheckFileType(type) let t_filetypes = split(&filetype,'\.') if index(t_filetypes,a:type)>=0 return 1 else return 0 endif endfunction function s:DetectFirstLine() "跳转到指定区域的第一行,开始操作 exe 'normal '.1.'G' let arrData = [ \['sh',['^#!.*$']], \['python',['^#!.*$','^#.*coding:.*$']], \['php',['^