farmergreg / vim-lastplace

A vim / nvim plugin that intelligently reopens files at your last edit position.

Home Page:https://www.gregd.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doesn't play well with NERDTree and TagBar

LER0ever opened this issue · comments

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.

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!

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

Thanks!