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

fzf moves the cursor in Vim #678

Closed
purinkle opened this issue Oct 29, 2020 · 2 comments
Closed

fzf moves the cursor in Vim #678

purinkle opened this issue Oct 29, 2020 · 2 comments

Comments

@purinkle
Copy link
Contributor

After recently running an update of fzf, Vim, or a combination of the both, I am starting to see something weird.

Whenever I open a file in a new buffer using fzf, the file opens fine. When I navigate back to the original buffer, Vim has moved my cursor to the first line, and I have lost my place. It is not helpful to my workflow.

There is nothing weird in my own Vim configuration. I would appreciate any help.

@purinkle
Copy link
Contributor Author

purinkle commented May 20, 2021

It turns out that the following line in my Vim configuration caused this issue.

set scrolloff=999

Removing the offending line fixed the issue.

@JoelQ
Copy link
Contributor

JoelQ commented May 20, 2021

I think @SViccari was running into something similar

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

2 participants