码迷,mamicode.com
首页 > 其他好文 > 详细

Commands to indent blocks

时间:2016-04-27 12:59:51      阅读:135      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!