"============================================================================= " Author: dantezhu - http://www.vimer.cn " Email: zny2008@gmail.com " FileName: authorinfo.vim " Description: " Version: 1.1 " LastChange: 2011-02-15 19:30:12 " History: "============================================================================= 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 = [ \['python',['^#!.*$','^#.*coding:.*$']], \['php',['^