首页 > 其他 > 详细

Commands to indent blocks

时间:2016-04-27 12:58:28      阅读:179      评论:0      收藏:0      [点我收藏+]

参考: http://vim.wikia.com/wiki/Indent_a_code_block


=i{ reindents "inner block" (inside the braces).
=a{ reindents "a block" (including the braces).
=2a{ reindents 2 blocks (this block and containing block).
Instead of "{", you can use "}" or "B", for example, =aB indents a block.

These commands will decrease or increase indents:

>i{ increase indent for inner block.
. repeat last change (increase indent of block again).
<i{ decrease indent for inner block.
With the cursor on { or }:

=% indents the block (including matching brace).
>% or <% indents or unindents the block.

 

Commands to indent blocks

原文:http://www.cnblogs.com/qike/p/5438102.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!