新建配置文件
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
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