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.99k stars 116 forks source link

Stop the matching pair from jumping to cursor position after deleting a line #298

Open PR0BLEMCH1LD opened 3 years ago

PR0BLEMCH1LD commented 3 years ago

I have the following block:

{
     |
}

and when I delete the line with backspaces, I expected to get this:

{|
}

but instead I got this:

{|}

This is extremely annoying when I have the following situation:

int main()
{
     for ( ; ; ; ) 
     {
     }|
}

If I got rid of the for loop from the cursor position then I will get this:

int main()
{
     for ( ; ; ; )
     {|}

and if I backspace one more time it will get rid the main's function ending bracket.

I have read all the documentations but could not find a solution, maybe I'm just missing something. How would you fix it?