配置vim创建py和sh等文件是自动添加头
在我的centos中是在/etc/vimrc中添加配置信息 autocmd BufNewFile *.py,*.sh exec :call SetTitle() 定义函数SetTitle,自动插入文件头 func SetTitle() 如果文件类型为.sh文件 if &filetype == 'sh' call setline(1,\#########################################################################) c
下载地址
用户评论