Fixes auto indent incorrect in CoffeeScript

This commit is contained in:
jiangfriend@gmail.com 2011-12-07 19:56:14 +08:00
parent 2d6a50c4b5
commit e0d5dab300

View File

@ -1,7 +1,7 @@
" Insert or delete brackets, parens, quotes in pairs. " Insert or delete brackets, parens, quotes in pairs.
" Maintainer: JiangMiao <jiangfriend@gmail.com> " Maintainer: JiangMiao <jiangfriend@gmail.com>
" Last Change: 2011-09-06 " Last Change: 2011-12-07
" Version: 1.1.1 " Version: 1.1.2
" Homepage: http://www.vim.org/scripts/script.php?script_id=3599 " Homepage: http://www.vim.org/scripts/script.php?script_id=3599
" Repository: https://github.com/jiangmiao/auto-pairs " Repository: https://github.com/jiangmiao/auto-pairs
@ -165,7 +165,7 @@ function! AutoPairsReturn()
if g:AutoPairsCenterLine && winline() * 1.5 >= winheight(0) if g:AutoPairsCenterLine && winline() * 1.5 >= winheight(0)
let cmd = " \<C-O>zz\<ESC>cl" let cmd = " \<C-O>zz\<ESC>cl"
end end
return "\<DEL>\<CR>".cur_char."\<ESC>=ko".cmd return "\<DEL>\<CR>".cur_char."\<ESC>k==o".cmd
end end
return "\<CR>" return "\<CR>"
endfunction endfunction