Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.98k stars 117 forks source link

Some closing characters indented too far in python #279

Open apiarian opened 5 years ago

apiarian commented 5 years ago

Hitting <CR> at the | :

{|}

results in

{
    |
}

But does not work correctly with parentheses and square brackets:

(|)

results in

(
    |
    )

and

[|]

results in

[
    |
    ]

Is there something special about square brackets and parentheses? Is this some PEP8 hard-coded-ness? The desired results (similar to the curly braces) seem to be approved by PEP8: https://www.python.org/dev/peps/pep-0008/#indentation .

s1341 commented 4 years ago

I too am having this issue, but with all pair types...

drdilyor commented 3 years ago

this issue is not related to delimitMate, i guess, try adding vim-polyglot plugin, but it can hurt performance (e.g. in .vue files)

see also https://stackoverflow.com/q/67166645/13449712