Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2071818
  • 博文数量: 413
  • 博客积分: 10926
  • 博客等级: 上将
  • 技术积分: 3862
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-09 18:14
文章分类

全部博文(413)

文章存档

2015年(5)

2014年(1)

2013年(5)

2012年(6)

2011年(138)

2010年(85)

2009年(42)

2008年(46)

2007年(26)

2006年(59)

分类: LINUX

2011-08-29 10:16:31

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

阅读(1967) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~