maralla / completor.vim

Async completion framework made ease.
MIT License
1.27k stars 63 forks source link

Remove <cr> from tab select example #244

Closed kris-steinhoff closed 5 years ago

kris-steinhoff commented 5 years ago

I've been using the configuration in the example in the "Use Tab to select completion" section. I've found the <cr> on the last inoremap is counterintuitive. This PR proposes removing it.

The newline is not what I expect when hit enter after tabbing to select the completion I want. I almost always have to delete the newline to get back to the end of the inserted completion, which is where I want to be.

This modified behavior makes the <cr> match the behavior in other editors like Atom and VS Code.

maralla commented 5 years ago

Thanks!