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()