vim autoformat
gg=G
vim autoformat
gg=G
indent vim
Be in visual mode (v).
Use the > command. To indent five lines, 5>>.
To mark a block of lines and indent it, Vjj> to indent three lines (Vim only).
To indent a curly-braces block, put your cursor
on one of the curly braces and use >% or from
anywhere inside block use >iB.
If you’re copying blocks of text around and need to
align the indent of a block in its new location, use
]p instead of just p. This aligns the pasted block with
the surrounding text.
vim auto indent
:set autoindent
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us