发布时间:2019-08-12 09:51:44编辑:auto阅读(1869)
"python
function HeaderPython()
call setline(1, "#!/usr/bin/env python")
call append(1, "# -*- coding: utf-8 -*-")
call append(2, "# Pw @ " . strftime('%Y-%m-%d %T', localtime()))
call append(3, "# Description:")
call append(4, "")
call append(5, "__author__ = 'Jiwen Zheng'")
normal G
normal o
normal o
endf
"tab=4空格
autocmd bufnewfile *.py call HeaderPython()
set tabstop=4
set softtabstop=4
set shiftwidth=4
set noexpandtab
set nu
set autoindent
"shell
function HeaderShell()
call setline(1, "#!/bin/bash")
call append(1, "# Pw @ " . strftime('%Y-%m-%d %T', localtime()))
call append(2, "# author: 郑集文")
normal G
normal o
endf
autocmd bufnewfile *.sh call HeaderShell()
上一篇: Python 工具v简介
下一篇: 优化python执行效率
51282
50731
41331
38143
32607
29510
28363
23231
23197
21524
1595°
2324°
1926°
1867°
2196°
1910°
2599°
4362°
4211°
2990°