User Tools

Site Tools


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.txt · Last modified: 2021/02/16 10:39 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki