From 69bfaf0fdd935d679a11aa00f581b7481487c509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Bourlet?= Date: Mon, 23 Jan 2017 14:51:25 -0800 Subject: [PATCH] Use `normal!` Use `normal!` to avoid collision with user defined mappings. --- plugin/auto-pairs.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index b4b070b..b4beb21 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -321,7 +321,7 @@ function! AutoPairsFastWrap() let next_char = line[col('.')] let open_pair_pattern = '\v[({\[''"]' let at_end = col('.') >= col('$') - 1 - normal x + normal! x " Skip blank if next_char =~ '\v\s' || at_end call search('\v\S', 'W') @@ -342,7 +342,7 @@ function! AutoPairsFastWrap() end return s:Right.inputed_close_pair.s:Left else - normal he + normal! he return s:Right.current_char.s:Left end endfunction