cohama / lexima.vim

Auto close parentheses and repeat by dot dot dot...
1.01k stars 46 forks source link

delete + input_after not working #25

Closed cpixl closed 2 years ago

cpixl commented 9 years ago

I have the following settings:

{'char': '<cr>', 'at': '{\%#}$', 'input': '<cr>\<space>', 'input_after': ',<cr>\', 'filetype': 'vim'},
{'char': '<cr>', 'at': '{ \%# }$', 'input': '<bs><cr>\<space>', 'input_after': ',<cr>\', 'delete': 1, 'filetype': 'vim'},

The first one works correctly, but the second one doesn't. The behavior (just to make it easier to read) should be like this:

Before           Input         After
-----------------------------------------
let a = {|}     <cr>          let a = {
                                \ |,
                                \}
-----------------------------------------
let a = { | }   <cr>          let a = {
                                \ |,
                                \}

In the end, both would do the same... de only difference is that the second one handles the { | } case, that's very common on my case.

cohama commented 2 years ago

Thank you for your reporting.

I have updated and you can use both "delete" and "input" at the same time.