`

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics