=
The
Operator
The = command in Vim
Operator
auto indent
Auto-indent operator — re-indents the text covered by the motion using Vim's built-in formatter (or
equalprg if set). == formats the current line. Set equalprg to pipe through an external formatter: set equalprg=prettier\ --stdin-filepath\ %.Examples
==(format line)=G(format to end of file)=ip(format paragraph)gg=G(format whole file)=%(format to matching bracket):set equalprg=black\ - (use black for Python)
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related operators