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

Go back link behavior does not make sense #41

Closed
wailmerpailmer opened this issue Nov 15, 2019 · 4 comments
Closed

Go back link behavior does not make sense #41

wailmerpailmer opened this issue Nov 15, 2019 · 4 comments

Comments

@wailmerpailmer
Copy link

Description

When traversing down multiple files, pressing backspace to go back does not do what I expect it to. For instance, if I have a directory structure as follows:

/wiki/
└── index.wiki
└── folder
    └── file2
    └── folder2
        └── file3

And I traverse from index.wiki -> file2 -> file3, and then from file3 I go back, it will bring me to file2. However, upon going back once more, suddenly I am back in file3. Then another press will bring me back to file2 and then finally to index.wiki.

Expected Behavior

I expect the progress to be a stack, where pressing back brings me to the last item that I visted. Like a web browser back button. In this case, going from index.wiki -> file2 -> file3, I expect it to bring me back in the exact reverse order.

lervag added a commit that referenced this issue Nov 15, 2019
@lervag
Copy link
Owner

lervag commented Nov 15, 2019

I've confirmed the problem and added a test. I should be able to fix this quite soon. Sorry about the inconvenience!

lervag added a commit that referenced this issue Nov 15, 2019
@lervag
Copy link
Owner

lervag commented Nov 15, 2019

Does :set hidden fix things for you? (That is, add it to your .vimrc file.)

@wailmerpailmer
Copy link
Author

Indeed, it does. Thanks.

@lervag
Copy link
Owner

lervag commented Nov 16, 2019

Great! I think set hidden really should be a default setting, and I think it is mentioned by approximately every guide to Vim. So I'll consider this issue resolved without any further actions. But thanks for raising the issue and making me aware of the requirement!

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