farmergreg / vim-lastplace

A vim / nvim plugin that intelligently reopens files at your last edit position.
https://www.gregd.org/
MIT License
583 stars 28 forks source link

doesn't play well with NERDTree and TagBar #14

Closed LER0ever closed 7 years ago

LER0ever commented 7 years ago

Vim-Lastplace works well when opening a file using NERDTree, but if I toggle tagbar after opening the file, the entire layout get messed up.

I've found a stackoverflow question (#33516037) that describes the exact situation and even have text diagram explaning the situation. It seems that BufWinEnter function causes this issue.

farmergreg commented 7 years ago

Thanks for the bug report. I'll take a closer look at this when I get some free time.

In the meantime, I'd like to confirm if this is a bug in vim-lastplace, or if it's a bug in NERDTree, TagBar, or vim.

As always, if it's a vim-lastplace bug and you have the time to create a fix, your help would be greatly appreciated.

Thanks!

farmergreg commented 7 years ago

@LER0ever I think I've fixed this bug in master. Please let me know if the fix is working for you.

Thanks!