基于Linux的vimrc配置
包含鼠标可控,Html调用,以及显示行号等信息。可自行修改。
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8 set nu set cursorline set showmatch set mouse=a set selection=exclusive set selectmode=mouse,key set tabstop=4 set shiftwidth=4 set autoindent set paste set laststatus=2 set ruler set autoindent set cindent set tabstop=4 set softtabstop=4 set shiftwidth=4 set smarttab set number function Html() call setline(1,"<!DOCTYPE html>") call append(1,"<html>") call append(2,"<head>") call append(3,"<meta charset="UTF-8">") call append(4,"<meta http-equiv="X-UA-Compatible" content="IE=edge">") call append(5,"<meta name="viewport" content="width=device-width, initial-scale=1.0">") call append(6,"<title>AGuo</title>") call append(7,"<style>") call append(8,"</style>") call append(9,"<script>") call append(10,"</script>") call append(11,"</head>") call append(12,"<body>") call append(13,"</body>") call append(14,"</html>") endfunction autocmd BufWritePost $MYVIMRC source $MYVIMRC
本文作者:youget
本文链接:https://www.cnblogs.com/youget/p/17306658.html
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步