Created
January 4, 2017 20:00
-
-
Save snambi/8177df9139118558c1ebaf3b96abf4c7 to your computer and use it in GitHub Desktop.
How to setup VIM for editing python code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open $HOME/.vimrc | |
vi ~/.vimrc | |
# Enable ftplugin ( File Type Plugin ) in $HOME/.vimrc | |
filetype plugin indent on | |
# save .vimrc file | |
# Create ftplugin folder | |
mkdir -p $HOME/.vim/ftplugin | |
# create python.vim file | |
vi ~/.vim/ftplugin/python.vim | |
# add following lines in python.vim file | |
set tabstop=4 | |
set expandtab | |
set shiftwidth=4 | |
set softtabstop=4 | |
# save python.vim file | |
# Now VIM is enabled for editing python code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment