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

Bug in history management with multiple file buffers #149

Closed
GoogleCodeExporter opened this issue Aug 18, 2015 · 2 comments
Closed

Bug in history management with multiple file buffers #149

GoogleCodeExporter opened this issue Aug 18, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

Suppose I have 2 files A and B open in my vim using multiple file buffers
1. I open file A
2. I make a change in A
3. I save the change made to file A
4. Then I open the file buffer for B using bp.
5. Then if I go to the terminal by pressing Ctrl+Z
6. I go back to my file B by pressing fg in the terminal.
7. Then afterwards I go back to the buffer associated with file A
8. If I do undo the history of file A is not there.

What is the expected output? What do you see instead?

When I do undo I would want the history of file A to be still there

What version of the product are you using? On what operating system?

vim 7.3 Patches Included: 1-763, 765-831
OpenSuse 12.3

Please provide any additional information below.

Original issue reported on code.google.com by gu...@ascomp.ch on 11 Jul 2013 at 12:04

@GoogleCodeExporter
Copy link
Author

This is expected behavior. By default Vim discards undo history when you 
abandon a buffer. You have a few options:

1. Set the 'hidden' option so Vim doesn't abandon the buffer.
2. Set the 'undofile' option so Vim saves the undo information in a file (also 
lets you quit Vim and relaunch Vim and keep the undo info).
3. Open a new window or tab for file B instead of switching buffers in the same 
window.

Original comment by fritzoph...@gmail.com on 11 Jul 2013 at 3:03

@GoogleCodeExporter
Copy link
Author

Original comment by chrisbr...@googlemail.com on 30 Sep 2014 at 8:39

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant