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>

posted @ 2022-05-31 09:00  梁永旺  阅读(27)  评论(0编辑  收藏  举报