You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a really simple plugin called restore_session that automatically calls mkview when saving a buffer or exiting vim, and then calls silent loadview when entering the buffer. This allows you to return to the exact previous cursor location of a file when you re-enter vim, along with restoring some other things like folds. However, using this plugin breaks the MRU sort in BufExplorer, because of this line:
autocmdSessionLoadPost*calls:Reset()
Every time loadview gets called (which happens whenever you enter a buffer), Reset() is called, which re-initializes the MRU list. I'm able to workaround the issue by commenting out the above line. However, I can see from the changelog that the line in question was originally added to fix a bug related to MRU sort after loading sessions. Oddly, it introduces a bug for me when loading sessions, but I'm assuming there's some other use-case that breaks without this line. I'm not sure how/if you can fix both problems at the same time, but I'll let you figure that out :)
The text was updated successfully, but these errors were encountered:
I apologize for such a delay in responding... and for the issue you are seeing...
Looks like others are having the same issue you are seeing... I will see if I can fix this. I personally do not use sessions, so someone must have asked for that to be added.
I was having problems related to bufexplorer handling of the BufEnter event and was able to work around it with the eventignore option, you might be able to do something similar. Simply putting set eventignore=SessionLoadPost in your .vimrc might fix things, although it may break other stuff.
I believe I see a way to adjust the MRU buffer tracking to address this issue (along with #87). I'd like to mull over the idea some more and hopefully have a pull request to consider, as hobby time permits.
I'm using a really simple plugin called restore_session that automatically calls
mkview
when saving a buffer or exiting vim, and then callssilent loadview
when entering the buffer. This allows you to return to the exact previous cursor location of a file when you re-enter vim, along with restoring some other things like folds. However, using this plugin breaks the MRU sort in BufExplorer, because of this line:Every time
loadview
gets called (which happens whenever you enter a buffer), Reset() is called, which re-initializes the MRU list. I'm able to workaround the issue by commenting out the above line. However, I can see from the changelog that the line in question was originally added to fix a bug related to MRU sort after loading sessions. Oddly, it introduces a bug for me when loading sessions, but I'm assuming there's some other use-case that breaks without this line. I'm not sure how/if you can fix both problems at the same time, but I'll let you figure that out :)The text was updated successfully, but these errors were encountered: