diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index c28c2c2..796b788 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -281,6 +281,13 @@ function! AutoPairsReturn() " Use \ is a bit wierd. the character before cursor need to be deleted. let cmd = " \zz\cl" end + + " If user has set equalprg, then avoid call = + " https://github.com/jiangmiao/auto-pairs/issues/24 + if &equalprg != '' + return "\O".cmd + endif + " conflict with javascript and coffee " javascript need indent new line " coffeescript forbid indent new line