I have several indentkeys (like end
, elseif
...), all of the works fine but typing }
triggers the reindentation with a 1s delay. It behaves the same if I disabled my 'indentexpr'
and use 'cindent'
.
The delay is caused by 'showmatch'
and 'matchtime'
:set noshowmatch
or :set matchtime=0
negates the delay.
}
in insert mode has been mapped, via:imap }
. – Wang Shidong Sep 1 '18 at 6:13}
is inserted immediately it's just the reindentation is triggered with delay – tga Sep 1 '18 at 12:56'showmatch'
, if I disabled it the delay is gone, should be a bug? – tga Sep 1 '18 at 13:02