vim

and, and Tab

Syntax

:set tabstop / :set shiftwidth / >> / <<

Parameters

ParametersDescriptionExamplesLevel
>> >> Common
<< << Common
= gg=G Common
:set ts=4 Tab 4 :set tabstop=4 Common
:set sw=4 4 :set shiftwidth=4 Common
:set expandtab Tab :set expandtab Common
:retab Tab :retab Advanced

Examples

gg=G
gg, =, G

V5j>
5

Python

:set ts=4 sw=4 expandtab
4

Tab

:set expandtab | :retab
Tab

Common Errors

Tab and:set list, :retab

Tips

Related Commands