How to setup VIM autoindentation properly for editing Python files?

PythonServer Side ProgrammingProgramming

To set autoindent for python files in VIM, use the following config:

Example

set ts=4
set sts=4
set sw=4
set autoindent
set smartindent
set smarttab
set expandtab

Add this config to your .vimrc file in home folder.

raja
Published on 26-Dec-2017 18:00:07
Advertisements