Add specific options for Python, using tab instead of spaces
This commit is contained in:
parent
95b08768c4
commit
c3f6a83129
1 changed files with 11 additions and 0 deletions
11
.vimrc
11
.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()
|
||||
|
|
Loading…
Reference in a new issue