Chinaunix首页 | 论坛 | 博客
  • 博客访问: 43982
  • 博文数量: 11
  • 博客积分: 1155
  • 博客等级: 少尉
  • 技术积分: 400
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-31 14:45
文章分类

全部博文(11)

文章存档

2009年(2)

2008年(9)

我的朋友
最近访客

分类: C/C++

2009-03-27 11:52:20

 How do I format/indent an entire file?

You can format/indent an entire file using the gg=G command, where

    gg - Goto the beginning of the file
    =  - apply indentation
    G  - till end of file

For more information, read

    :help gg
    :help =
    :help G
    :help 'formatprg'
    :help C-indenting

格式化全文: gg=G

自动缩进当前行: ==


阅读(375) | 评论(0) | 转发(0) |
0

上一篇:Howto mount an ISO image in AIX UNIX

下一篇:没有了

给主人留下些什么吧!~~