Vim配置手册

新建配置文件

cd ~
touch .vimrc
vim .vimrc

基本配置

"显示行号
set nu

"语法高亮
syntax on

"鼠标可用
set mouse=a

"tab缩进
set tabstop=4
set shiftwidth=4
set expandtab
set smarttab

"c文件自动缩进
set cindent

"智能缩进
set smartindent

"自动对齐
set autoindent
原文地址:https://www.cnblogs.com/keyboardone/p/7227231.html