From 1c543c0bad26c6ad39c0c275137bd4954b2c9ac4 Mon Sep 17 00:00:00 2001 From: iTruth <58349472+iTruth@users.noreply.github.com> Date: Sat, 30 Nov 2019 10:22:31 +0800 Subject: [PATCH] Fixed bug Some plug-ins (such as tagbar) will be loaded before auto pairs, and these plug-ins will create buffers on their own. In this way, auto pairs will not get the BuffEnter event and will not execute AutoPairsTryInit() I added call AutoPairsTryInit() in the last line, which means trying to initialize the plug-in at the first time to solve the problem. --- plugin/auto-pairs.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index af5eb32..39bd049 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -671,3 +671,4 @@ imap