代码改变世界

web 粘贴到vim 的内容格式化

2014-07-21 17:29  briller  阅读(307)  评论(0编辑  收藏  举报
14.6. 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