Skip to content
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

Multi line substitute swapping sometimes doesn't work correctly #1

Open
svermeulen opened this issue Dec 31, 2018 · 1 comment
Open

Comments

@svermeulen
Copy link
Owner

Given the following buffer with cursor at ^

^one
two
three
four

jim
joe
frank
fred

Execute yjjjyj to copy two multiline yanks to yoink history. Move cursor:

one
two
three
four

^jim
joe
frank
fred

Hit sj<c-n> to perform a substitute then swap. Notice the buffer now appears as:

one
two
three
four

jim
one
two
fred

When it should be:

one
two
three
four

one
two
frank
fred
@svermeulen
Copy link
Owner Author

This is because the vim undo operation does not always restore the cursor to the position it was before the operation took place, and the swapping logic assumes this. So I think we need to wait for neovim to fix this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant