Vim Text indent

Rating: 
+1
+187
-1
You voted '+1'.
Clone this Snippet

Text indent

:set autoindent 	Turn on auto-indent
:set smartindent 	Turn on intelligent auto-indent
:set shiftwidth=4 	Defines 4 spaces as indent size
ctrl-t, ctrl-d 	Indent/un-indent in insert mode
>> 	Indent
<< 	Un-indent
=% 	Indent the code between parenthesis
1GVG= 	Indent the whole file
Category: 
Vim