这些仅仅作为笔记,适用于大多数情况,当然还可以自己配置一个个性化的适合自己的语言:
vim ~/.vimrc
1.制表符宽度
set tabstop=4
2.缩进的空格数
set shiftwidth=4
3.每行的缩进与上一行相等
set autoindet
4.显示行号
set nu
5.使用C/C++语言的自动缩进
set cindent
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching
set smartcase " Do smart case matching
set incsearch " Incremental search
set autowrite " Automatically save before commands like :next and :make