Thursday, 21 April 2022

how to use vim to make a proper python indentation in mac OS?

alias python="python3"

brew install vim

vi ~/.vimrc

syntax on
set showmatch
set ts=4
set sts=4
set sw=4
set autoindent
set smartindent
set smarttab
set expandtab
set number
(close the terminal and open again)
vim temp.py 

No comments:

Post a Comment