Fixed problem with indent in python file.

After press Retunr in pair have result:
dict(
....|
)
Issue #295
This commit is contained in:
Mike Voznesensky 2020-11-07 14:57:00 +03:00
parent 39f06b873a
commit a91aaf937e

View File

@ -412,6 +412,9 @@ func! AutoPairsReturn()
" coffeescript forbid indent new line
if &filetype == 'coffeescript' || &filetype == 'coffee'
return "\<ESC>".cmd."k==o"
endif
if &filetype == 'python'
return "\<BS>\<BS>\<ESC>".cmd."O\<BS>"
else
return "\<ESC>".cmd."=ko"
endif