diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index af5eb32..690c771 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -412,6 +412,9 @@ func! AutoPairsReturn() " coffeescript forbid indent new line if &filetype == 'coffeescript' || &filetype == 'coffee' return "\".cmd."k==o" + endif + if &filetype == 'python' + return "\\\".cmd."O\" else return "\".cmd."=ko" endif