1.在已经完成vimplus的安装后,终端进入~/.vim/plugged/prepare-code/autoload/prepare这个文件夹
这是vimplus中预定义的编码脚本
2.然后编辑prepare.vim,添加以下代码
" 生成作者信息
function! s:gen_information(suffix)
if a:suffix == 'sh' || a:suffix == 'py'
call setline(1, "##########################################################################")
call append(line("."), "# File Name: ".expand("%"))
call append(line(".")+1, "# Author: 你的名字")
call append(line("."