From 46affcb866c0076807b329c2bbe83ae6044a7c2a Mon Sep 17 00:00:00 2001 From: bounceme Date: Thu, 16 Jun 2016 16:37:04 -0700 Subject: [PATCH] a solution for 486 this just makes the indentation increase with an initial dot chained method --- indent/javascript.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indent/javascript.vim b/indent/javascript.vim index 806f079b..9cb3048b 100644 --- a/indent/javascript.vim +++ b/indent/javascript.vim @@ -369,7 +369,8 @@ function GetJavascriptIndent() " If line starts with an operator... if (line =~ s:operator_first) - if (s:Match(lnum, s:operator_first) || s:Match(lnum, s:line_pre . '[])}]')) + if (s:Match(lnum, s:operator_first) || (s:Match(lnum, s:line_pre . '[])}]') && + \ !(s:Match(v:lnum,s:line_pre . '\.') && s:Match(lnum, ')' . s:line_term)))) " and so does previous line, don't indent return indent(lnum) end