From e9051dc246c4978a5858b5c5696b01b34eaf9dc0 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sat, 23 Mar 2019 23:40:17 +0000 Subject: [PATCH] Override default Python indent settings --- indent/python.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 indent/python.vim diff --git a/indent/python.vim b/indent/python.vim new file mode 100644 index 0000000..8c19210 --- /dev/null +++ b/indent/python.vim @@ -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: +" /runtime/indent/python.vim +setlocal indentexpr= +setlocal indentkeys+=<:>,=elif,=except