X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/e2267fe1da0d3d9581e8d77a2cd6795a7cec02f4..c4b633407dcd7e7b7b5c9a780edb3a8dc906eb7c:/indent/python.vim?ds=sidebyside diff --git a/indent/python.vim b/indent/python.vim index 6fb1889..9b8e9b1 100644 --- a/indent/python.vim +++ b/indent/python.vim @@ -19,7 +19,8 @@ setlocal indentkeys=!^F,o,O,<:>,0),0],0},=elif,=except let s:maxoff = 50 let s:block_rules = { - \ '^\s*\(elif\|else\)\>': ['if', 'elif'], + \ '^\s*elif\>': ['if', 'elif'], + \ '^\s*else\>': ['if', 'elif', 'for', 'try', 'except'], \ '^\s*except\>': ['try', 'except'], \ '^\s*finally\>': ['try', 'except', 'else'] \ }