首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

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

2012-07-28 
【转】Vim FAQ -- 自动缩进代码转自:http://www.slyar.com/blog/vim-indentation.html?ggG 就可以了,具体见

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

热点排行