vim:cheatsheet:indent_text
Differences
This shows you the differences between two versions of the page.
vim:cheatsheet:indent_text [2021/02/16 10:38] – created peter | vim:cheatsheet:indent_text [2021/02/16 10:39] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== VIM - Cheatsheet - Indent text ====== | ====== VIM - Cheatsheet - Indent text ====== | ||
+ | < | ||
+ | >> - indent (move right) line one shiftwidth | ||
+ | << - de-indent (move left) line one shiftwidth | ||
+ | | ||
+ | >% - indent a block with () or {} (cursor on brace) | ||
+ | >ib - indent inner block with () | ||
+ | >at - indent a block with <> tags | ||
+ | | ||
+ | 3== - re-indent 3 lines | ||
+ | =% - re-indent a block with () or {} (cursor on brace) | ||
+ | =iB - re-indent inner block with {} | ||
+ | gg=G - re-indent entire buffer | ||
+ | | ||
+ | ]p - paste and adjust indent to current line | ||
+ | </ |
vim/cheatsheet/indent_text.1613471928.txt.gz · Last modified: 2021/02/16 10:38 by peter