Closed FelikZ closed 10 years ago
You want to completely disable MatchTag? Just remove it from your vim directory.
If you want to conditionally disable, you can remove the auto group matchhtmlparen: augroup! matchhtmlparen
.
Highlight_Matching_Pair is only called when you move your cursor.
If I'm reading your output correctly, 0.014041 seconds is ~14ms. Divided by 85 is ~0.16 ms per keypress. I doubt that you can notice this lag. I suspect your problem lies elsewhere.
I just notices that when Im moving across my custom colorsheme source, there is a huge lags during movements via
jk
. So I decided to profile what is currently happening and found that MatchTag is trying to match something on current filetype... Checked twice :set ft? so its really equals tovim
.Here is some statistic from profiles:
As you can see, airline in pair with MatchTag crap a little performance. How I can prevent MatchTag to load (e.g. use Highlight_Matching_Pair function)?