From e62479a54299a6d57a266b044238350ba04cb18c Mon Sep 17 00:00:00 2001 From: Cam Thompson Date: Thu, 22 Dec 2011 09:23:48 -0500 Subject: [PATCH] Don't close single quotes when inside a word --- plugin/auto-pairs.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index a7b2938..1738c50 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -110,7 +110,10 @@ function! AutoPairsInsert(key) return "\" end - return open.close."\" + if a:key == "'" && prev_char =~ '\v\w' + return a:key + else + return open.close."\" endfunction function! AutoPairsDelete()