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

Ctrl-I and Ctrl-O when using vinegar #54

Open
anthonypt87 opened this issue Aug 10, 2015 · 2 comments
Open

Ctrl-I and Ctrl-O when using vinegar #54

anthonypt87 opened this issue Aug 10, 2015 · 2 comments

Comments

@anthonypt87
Copy link

I just switched from netrw and one thing I noticed was slightly inconsistent behavior with ctrl-i and ctrl-o. Sometimes after opening a file with vinegar, I realize I'm looking at the wrong file and want to go back to vinegar. I'm able to use ctrl-o to get back to vinegar for this case but if I want to use ctr-i to go back to the same file, it doesn't seem to work.

To reproduce:
⇒ mkdir vinegar_test
⇒ cd vinegar_test
⇒ touch test.txt
⇒ vim .
Hit enter with the cursor over test.txt to open the file
Hit ctrl-o twice (not sure why I have to hit it twice but it works to open up vinegar again)
----> At this point another weird thing happens where test.txt shows up twice in the list.
Hitting ctrl-i does not bring you back to the file

Thanks!

@saliola
Copy link

saliola commented Oct 24, 2015

I can reproduce this.

I stumbled across this issue because I am experiencing similar problems with Ctrl-I and Ctrl-O.

After a while of editing and navigating between files with vinegar, I end up with broken Ctrl-I and Ctrl-O. I don't really know what causes it. I have to hit Ctrl-O twice to move and sometimes Ctrl-I doesn't work (like @anthonypt87 noticed). And sometimes Ctrl-O (twice) just jumps back and forth between the last two locations instead of moving through the jumplist.

I'm not sure what I can do to debug this. nmap doesn't seem to say anything. Any ideas?

I love your plugins, tpope. Thanks for all your hard work.

@codeincontext
Copy link

codeincontext commented Jun 3, 2016

I can also reproduce this with a modern neovim. I don't know enough about the difference between netrw's normal behaviour and vinegar to determine the cause (yet!)

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

3 participants