From 1484f6501dabc931f2d8a5586350550bb5aaf803 Mon Sep 17 00:00:00 2001 From: Scott McGinness Date: Mon, 20 May 2013 19:56:12 +0100 Subject: [PATCH] Try to use abbreviation before using space mapping --- plugin/auto-pairs.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index 3cd3442..aba6f1a 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -419,7 +419,12 @@ function! AutoPairsInit() end if g:AutoPairsMapSpace - execute 'inoremap =AutoPairsSpace()' + " Try to respect abbreviations on a + let do_abbrev = "" + if v:version >= 703 && has("patch489") + let do_abbrev = "" + endif + execute 'inoremap '.do_abbrev.'=AutoPairsSpace()' end if g:AutoPairsShortcutFastWrap != ''