Add specific options for Python, using tab instead of spaces

This commit is contained in:
Gregory Trolliet 2020-05-07 21:27:49 +02:00
parent 95b08768c4
commit c3f6a83129

11
.vimrc
View file

@ -403,3 +403,14 @@ function! VisualSelection(direction, extra_filter) range
let @/ = l:pattern let @/ = l:pattern
let @" = l:saved_reg let @" = l:saved_reg
endfunction 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()