VIM自动格式化C代码
2012-04-06 15:26
483 查看
From: http://leloup.blog.51cto.com/blog/1113857/596107
在vim的官方FAQ (http://vimdoc.sourceforge.net/cgi-bin/vimfaq2html3.pl#14.6)找到的:
格式化全文: gg=G
自动缩进当前行: ==
这个是原文节选:
14.6. 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
For more information, read
:help gg
:help =
:help G
:help 'formatprg'
:help C-indenting
在vim的官方FAQ (http://vimdoc.sourceforge.net/cgi-bin/vimfaq2html3.pl#14.6)找到的:
格式化全文: gg=G
自动缩进当前行: ==
这个是原文节选:
14.6. 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
For more information, read
:help gg
:help =
:help G
:help 'formatprg'
:help C-indenting
相关文章推荐
- VIM自动格式化C代码
- vim自动格式化代码
- VIM自动格式化C代码
- vim中自动格式化代码
- vim中自动格式化代码
- 打造vim成为python IDE, 支持自动补全, 定义跳转, 按PEP8规范自动缩进和代码格式化
- vim中自动格式化代码
- VIM代码 格式化与注释 自动对齐
- vim 添加php自动补全 并格式化代码
- Myeclipse学习总结(3)——Myeclipse中的代码格式化、注释模板及保存时自动格式化
- vim 格式化代码
- 取消Eclipse的自动代码格式化
- vim 格式化代码
- Eclipse保存Java文件自动格式化代码
- windows下vim和Doxygen自动生成代码文档
- Eclipse 设置保存代码时自动格式化
- 关于eclispe保存代码自动格式化的设置
- vim格式化C代码
- vim格式化C代码
- Vim小技巧---代码自动对齐,智能提示