常用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,把当前行的对起格式应用到下一行

posted @ 2016-02-22 00:30  葫芦娃Vs奥特曼  阅读(167)  评论(0编辑  收藏  举报