vim-vinegar
vim-vinegar copied to clipboard
Ctrl-I and Ctrl-O when using vinegar
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!
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.
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!)