-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make line operators backwards compatible with Vim #237
Comments
Thanks for the detailed report! Part 1 and 2 should be fixed by 319958e and 532f52e respectively. The latter change is strictly speaking not completely correct, but it seems good enough. Part 3 is an unrelated display issue. The newline character is deleted, it is just that vis always displays an "empty line" at the end of the file. For example run
And yes editing at the end of file should at some point probably be improved, see also #164 |
Thanks for the quick fix! But Part 2 is still not fixed for upwards motion And about part 3, if it is a display issue, why does the empty line go away when I do a
An unrelated issue: if I mistakenly do
|
This is not easily fixable and requires some more thought.
the file will initially be displayed like this:
you can place the cursor at the end of it
pressing backspace in insert mode will result in
this can be illustrated with As for the unrelated issue, without the trailing |
This should hopefully be fixed by b9d70d0.
This should now also be handled more gracefully. Once all data from standard input is consumed, vis will start processing regular keyboard input from |
#
denotes cursor position.Part 1
(Note: there's no trailing new line at the end of line 2)
Doing
yykp
results in:Part 2
Doing
yjp
will copy/paste only a single line:Next try (with cursor at
o
):Doing
yjp
gives (no special handling for line at the end):Part 3
Doing
dd
does not delete the preceding newline character (only the text):To delete that trailing newline, you have to do
ji<BS>
.The text was updated successfully, but these errors were encountered: