"不与vi兼任“
set nocompatible
"显示行号"
set number
"高亮语法"
syntax on
"底部显示当前模式"
set showmode
"底部显示命令"
set showcmd
"支持使用鼠标"
set mouse=a
"使用utf8"
set encoding=utf-8
"开启自动缩进"
set autoindent
"Tab显示的空格数"
set tabstop=4
"缩进使用的空格数"
set shiftwidth=4
"Tab转化为空格"
set expandtab
"Tab转为4个空格"
set softtabstop=4
"括号匹配"
set showmatch
"搜索高亮"
set hlsearch
"大小写敏感"
set smartcase
"自动切换工作目录"
set autochdir
"开启文件监听"
set autoread
VIM配置 ~/.vimrc
最新推荐文章于 2023-07-04 19:42:11 发布