【转】Vim FAQ -- 自动缩进代码
2011-09-19 16:24
127 查看
转自: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安装后的设置,括号补全,自动缩进、代码补全等
- 打造vim成为python IDE, 支持自动补全, 定义跳转, 按PEP8规范自动缩进和代码格式化
- vim编辑器代码高亮/显示行号/自动缩进设置
- vim支持代码自动缩缩进
- ubuntu设置vim语法高亮显示和自动缩进
- Vim的TAB及自动缩进的设置
- ubuntu设置vim语法高亮显示和自动缩进
- vim设置tabstop,自动缩进没变
- 关于VIM自动缩进失效(filetype indent on无效)的详细分析
- vim中设置显示行数,自动缩进,移动鼠标
- 逐步设置vim C/C++语法高亮显示和自动缩进
- vim显示行号、语法高亮、自动缩进设置
- vim粘贴代码时缩进混乱
- vim 配置文件 高亮+自动缩进+行号+折叠+优化
- vim 配置文件 ,高亮+自动缩进+行号+折叠+优化
- Vim技巧一则——代码自动对齐
- ubuntu10.10设置vim语法高亮和自动缩进
- 设置vim语法高亮显示和自动缩进
- Vi||Vim显示行号,自动缩进,调整tab键宽度技巧
- ubuntu17.04 vim取消自动缩进