Override default Python indent settings
This commit is contained in:
parent
84e310a28f
commit
e9051dc246
13
indent/python.vim
Normal file
13
indent/python.vim
Normal file
@ -0,0 +1,13 @@
|
||||
" Override default Python indent file
|
||||
|
||||
" Make sure lisp indenting doesn't supersede us
|
||||
setlocal nolisp
|
||||
" indentexpr isn't much help otherwise
|
||||
setlocal autoindent
|
||||
|
||||
" TODO: Implement an indentexpr for Python which does not crash on macvim
|
||||
" 8.1.950 and does not insert 2 tabs when adding a new line in function
|
||||
" parameters insert mode. Look at GetPythonIndent in:
|
||||
" <vim>/runtime/indent/python.vim
|
||||
setlocal indentexpr=
|
||||
setlocal indentkeys+=<:>,=elif,=except
|
Loading…
x
Reference in New Issue
Block a user