Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.

Home Page:http://www.vim.org/scripts/script.php?script_id=2754

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

skjaleidoscope opened this issue · comments

commented

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?