thoughtbot / dotfiles

A set of vim, zsh, git, and tmux configuration files.
https://thoughtbot.com
Other
7.99k stars 1.86k forks source link

fzf moves the cursor in Vim #678

Closed purinkle closed 3 years ago

purinkle commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

I think @SViccari was running into something similar