Doing <C-b> on a blank line (either empty or at the end of one with only whitespace) causes the line to be deleted (expected) and the last character of the previous line to be deleted as well (unexpected). For example, in the following code, pressing <C-b> results in just ba| (the | represents the cursor, rather than any character).
Doing
<C-b>
on a blank line (either empty or at the end of one with only whitespace) causes the line to be deleted (expected) and the last character of the previous line to be deleted as well (unexpected). For example, in the following code, pressing<C-b>
results in justba|
(the|
represents the cursor, rather than any character).Looking at the code, I believe that the culprit is the
s
at the end, and I think that replacing it with ana
will fix the issue. https://github.com/tpope/vim-rsi/blob/45540637ead22f011e8215f1c90142e49d946a54/plugin/rsi.vim#L21 As a side note, why is0<C-d>
run? I thoughtJ
already removed the indentation.