vim配置与操作
vim配置与操作
~/.vimrc 配置文件
set nu
set cursorline
set autoindent
set tabstop=4
function AddTitle()
call setline(1,"#!/usr/bin/python3")
call append(1,"#====================================================")
call append(2,"# Author: tony")
call append(3,"# Create Date: " . strftime("%Y-%m-%d"))
call append(4,"# Description: 描述内容")
call append(5,"#====================================================")
endf
map <F6> :call AddTitle()<cr>