You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Often through the process of coding I end up with multiple new-lines at the end of the document:
However, in this situation, often one would just want to use "d" to delete the excess new lines (or characters) from the end. However, as no character is actually selected, nothing happens.
Just thought it was a good feature to add. Another reason is that in VIM you could just press "dd" multiple times from the end and it works, whereas the equivalent "xd" also doesn't really work from the end of the buffer.
It also doesn't help to go left once and then press "d" as it would just delete a single line and you are back in the same situation. Ideally you should be able to start from the end, delete as many lines as needed from the end of the buffer.
There is another quirk worth considering too. If you press a while selecting the last character of the document, a new line is created. However, if you press a while on the emptiness at the end, nothing happens.
The text was updated successfully, but these errors were encountered:
That works well now that I've added it. I would still be interested to see what the authors think about having some way of using a single keybinding to achieve the kind of double functionality of delete and backspace on the end of the buffer.
It might just be me, but I see some value in that.
Often through the process of coding I end up with multiple new-lines at the end of the document:
However, in this situation, often one would just want to use "d" to delete the excess new lines (or characters) from the end. However, as no character is actually selected, nothing happens.
Just thought it was a good feature to add. Another reason is that in VIM you could just press "dd" multiple times from the end and it works, whereas the equivalent "xd" also doesn't really work from the end of the buffer.
It also doesn't help to go left once and then press "d" as it would just delete a single line and you are back in the same situation. Ideally you should be able to start from the end, delete as many lines as needed from the end of the buffer.
There is another quirk worth considering too. If you press a while selecting the last character of the document, a new line is created. However, if you press a while on the emptiness at the end, nothing happens.
The text was updated successfully, but these errors were encountered: