indent previous line after entering <CR>

https://github.com/jiangmiao/simple-javascript-indenter/issues/8
This commit is contained in:
jiangfriend@gmail.com 2011-11-14 17:10:18 +08:00
parent f447d486c9
commit 2d6a50c4b5

View File

@ -165,7 +165,7 @@ function! AutoPairsReturn()
if g:AutoPairsCenterLine && winline() * 1.5 >= winheight(0)
let cmd = " \<C-O>zz\<ESC>cl"
end
return "\<DEL>\<CR>".cur_char."\<C-O>O".cmd
return "\<DEL>\<CR>".cur_char."\<ESC>=ko".cmd
end
return "\<CR>"
endfunction