读书人

【转】Vim FAQ - 自动缩进代码

发布时间: 2012-07-28 12:25:13 作者: rapoo

【转】Vim FAQ -- 自动缩进代码

转自:http://www.slyar.com/blog/vim-indentation.html

?

gg=G 就可以了,具体见FAQ

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

读书人网 >开源软件

热点推荐