From a91aaf937e550a674d2dca1d19bb6a9b038815aa Mon Sep 17 00:00:00 2001 From: Mike Voznesensky Date: Sat, 7 Nov 2020 14:57:00 +0300 Subject: [PATCH] Fixed problem with indent in python file. After press Retunr in pair have result: dict( ....| ) Issue #295 --- plugin/auto-pairs.vim | 3 +++ 1 file changed, 3 insertions(+) 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