常用vim设置

set tabstop=4
set shiftwidth=4
set expandtab
set hlsearch
set cindent

set autoindent

set tabstop=4是设TAB宽4个空格
set shiftwidth=4表示每一级缩进的长度

set expandtab设置tab替换为空格

set hlsearch是high light search(高亮度搜寻)

set cindent是在C编码时,自动完成indent缩进内嵌代码块

set autoindent,把当前行的对起格式应用到下一行

原文地址:https://www.cnblogs.com/Huluwa-Vs-Aoteman/p/5205963.html