【转】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

你可能感兴趣的:(vim)