" Indent Python in the Google way. setlocal indentexpr=GetGooglePythonIndent(v:lnum) let s:maxoff = 50 " maximum number of lines to look backwards. function GetGooglePythonIndent(lnum) " Indent inside parens. " Align with the open paren unless it is at the end of the line. " E.g. " open_paren_not_at_EOL(100, " (200, " 300), " 400) " open_paren_at_EOL( " 100, 200, 300, 400) call cursor(a:lnum, 1) l