- Usage
- Setting
- High light
- Run ':syntax on' in vim
- Run 'export TERM=xterm-color' in command line
- Set width of TAB
:set tabstop=4
:set softtabstop=4 - Enable auto-indent
:set autoindent - Enable indent style of c/c++
:set cindent - Set width of indent
:set shiftwidth=4 - Format C/C++ program
Set offset of next line
:set cindent shiftwidth=4
Enable auto-format
:gg=G
or
:ggVG= - xxx