From bdc2504ca7d1cc4bf40a547ff8dd6d810cdedb2e Mon Sep 17 00:00:00 2001 From: Sonny Date: Sat, 10 Jun 2017 11:08:34 +0200 Subject: [PATCH] Python indentation --- vim/.vimrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 8857d1a..0c58d48 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -20,8 +20,12 @@ syntax enable " Create the `tags` file (may need to install ctags first) command! MakeTags !ctags -R . -" 4 spaces instead of tabs indentation -set shiftwidth=4 tabstop=4 softtabstop=4 expandtab +"Python specific's +au BufNewFile,BufRead *.py + \ set tabstop=4 + \ set softtabstop=4 + \ set shiftwidth=4 + \ set expandtab " Fold methods based on indents " zo to open folds, zc to close