diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index b743668..14c075c 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -165,7 +165,14 @@ function! AutoPairsReturn() if g:AutoPairsCenterLine && winline() * 1.5 >= winheight(0) let cmd = " \zz\cl" end - return "\\".cur_char."\k==o".cmd + " conflict from javascript and coffee + " javascript need indent new line + " coffeescript forbid indent new line + if &filetype == 'coffeescript' + return "\\".cur_char."\k==o".cmd + else + return "\\".cur_char."\=ko".cmd + endif end return "\" endfunction