基于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

浙公网安备 33010602011771号