设置shell脚本标题

编辑 vimrced set cursorline set tabstop=4 set autoindent set shiftwidth=4 set expandtab function PythonHeader() call setline(1,"coding: utf-8")

编辑 vimrced

set cursorline    
set tabstop=4
set autoindent
set shiftwidth=4
set expandtab
function PythonHeader()
    call setline(1,"coding: utf-8")
    normal G
    normal o
    normal o
endfunc
autocmd BufNewFile *.py call PythonHeader()
map <F5> :!clear ;python % <CR>

LICENSED UNDER CC BY-NC-SA 4.0
Comment