From c3f6a831290163dc70a99e3818413e5489f526ae Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Thu, 7 May 2020 21:27:49 +0200 Subject: [PATCH] Add specific options for Python, using tab instead of spaces --- .vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.vimrc b/.vimrc index 86f7c9d..6068999 100644 --- a/.vimrc +++ b/.vimrc @@ -403,3 +403,14 @@ function! VisualSelection(direction, extra_filter) range let @/ = l:pattern let @" = l:saved_reg endfunction + + +function! SetupPython() + " Here, you can have the final say on what is set. So + " fixup any settings you don't like. + setlocal softtabstop=4 + setlocal tabstop=4 + setlocal shiftwidth=4 + setlocal expandtab! +endfunction +command! -bar SetupPython call SetupPython()