
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
How to setup VIM autoindentation properly for editing Python files?
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.
- Related Articles
- How to monitor Python files for changes?
- How to properly enable ffmpeg for matplotlib.animation?
- How to activate cell for editing with single clicking in Excel?
- How to setup cookies in Python CGI Programming?
- How can I start writing or editing for Wikipedia?
- How do you properly ignore Exceptions in Python?
- How to convert PDF files to Excel files using Python?
- How to install GoldWave Audio Editing Software?
- How to import other Python files?
- How to compare files in Python
- Python Support for gzip files (gzip)
- 5 Best Vi/Vim-Inspired Code Editors for Linux
- How to Setup HAproxy Load Balance Server for Sharing Web Traffic
- How to Setup SSL for MySQL Server and Client on Linux
- How to remove swap files using Python?

Advertisements