JessicaKMcIntosh / TagmaBufMgr

Tagma Buffer Manager for Vim
17 stars 1 forks source link

TagmaBufMgr is not always on the top of vim #5

Closed stardiviner closed 12 years ago

stardiviner commented 12 years ago

I use Tagbar plugin to list tags. (I let Tagbar opened automatically, set in vimrc: autocmd VimEnter * nested :call tagbar#autoopen() ) TagmaBufMgr is opened with vim. Then I open Tagbar, and open a new file with a new window. Then I find that TagmaBufMgr is not on the top of vim. That opened new window is overhead of TagmaBufMgr. like this.

here is a screenshot: http://ompldr.org/vY2VqcQ

LStinson commented 12 years ago

Unfortunately there is not much I can do to make sure the buffer manager window is always on top. If a file is opened and you are (or were) in the buffer manager it can open above the buffer manager. The same thing can happen if you do ':help' while in the buffer manager. The best I can recommend is make sure the previous window is always the main buffer you were in and not the buffer manager. Some plugins also have a habit of changing the order of windows. And if a plugin uses a certain command it can open a window above the buffer manager. I have considered changes to move the buffer manager window up should it move, but the commands to do that can cause the windows to re-size unpredictably.

I'd also recommend making sure you have the latest version of TagmaBufMgr (I have fixed some similar windowing bugs) and using the option g:TagmaBufMgrLastLine. This will force the buffer manager to be the last window and will also eliminate the status line for that window. It makes it look much more natural and is what I now use. This option enables the Vim setting laststatus for the buffer manager which causes the last window to not have a status line.

On Mon, Jan 23, 2012 at 12:03 AM, stardiviner reply@reply.github.com wrote:

I use Tagbar plugin to list tags. (I let Tagbar opened automatically, set in vimrc: autocmd VimEnter * nested :call tagbar#autoopen() ) TagmaBufMgr is opened with vim. Then I open Tagbar, and open a new file with a new window. Then I find that TagmaBufMgr is not on the top of vim. That opened new window is overhead of TagmaBufMgr. like this.

here is a screenshot:  http://ompldr.org/vY2VqcQ


Reply to this email directly or view it on GitHub: https://github.com/LStinson/TagmaBufMgr/issues/5

http://lorance.freeshell.org/ (678) 683-9149

stardiviner commented 12 years ago

I open :help in main window, not the buffer manager. And the g:TagmaBufMgrLastLine = 1 can solve this. I need a little time to be used to this.

LStinson commented 12 years ago

Sadly :help in the buffer manager, like many other buffer managers, opens above the manager window. There is not much I can do about it. Once you get used to it having it on the last line is much cleaner, or so I have found. Good luck.

On Tue, Jan 24, 2012 at 2:03 AM, stardiviner reply@reply.github.com wrote:

I open :help in main window, not the buffer manager. And the g:TagmaBufMgrLastLine = 1 can solve this. I need a little time to be used to this.


Reply to this email directly or view it on GitHub: https://github.com/LStinson/TagmaBufMgr/issues/5#issuecomment-3628317

http://lorance.freeshell.org/ (678) 683-9149

LStinson commented 12 years ago

I'm sorry, I miss-read your remark. I'm not sure how doing :help in the main window would open the help window above the buffer manager. Perhaps there is a setting I am unaware of. I will try to look at the options and see if there is a setting that can cause this.

stardiviner commented 12 years ago

I find one info maybe useful for you. I use command :mgrclor to close TagmaBufMgr first, then close Tagbar window. then I get following error:

Error detected while processing function tagbar#ToggleWindow..79_ToggleWindow..79_CloseWindow: line 12: E716: Key not present in Dictionary: fpath) E116: Invalid arguments for function bufnr(s:known_files.getCurrent().fpath) E15: Invalid expression: bufnr(s:known_files.getCurrent().fpath) line 19: E121: Undefined variable: filebufnr E15: Invalid expression: bufnr('%') != filebufnr Press ENTER or type command to continue

LStinson commented 12 years ago

Now that is an interesting one. Those errors are definitely from Tagbar. I'm not sure how I could be interfering with it. I'll have to dig into this some more.

How recent is your Tagbar install?

On Wed, Feb 1, 2012 at 1:47 AM, stardiviner reply@reply.github.com wrote:

I find one info maybe useful for you. I use command :mgrclor to close TagmaBufMgr first, then close Tagbar window. then I get following error:

Error detected while processing function tagbar#ToggleWindow..79_ToggleWindow..79_CloseWindow: line   12: E716: Key not present in Dictionary: fpath) E116: Invalid arguments for function bufnr(s:known_files.getCurrent().fpath) E15: Invalid expression: bufnr(s:known_files.getCurrent().fpath) line   19: E121: Undefined variable: filebufnr E15: Invalid expression: bufnr('%') != filebufnr Press ENTER or type command to continue


Reply to this email directly or view it on GitHub: https://github.com/LStinson/TagmaBufMgr/issues/5#issuecomment-3754516

http://lorance.freeshell.org/ (678) 683-9149

stardiviner commented 12 years ago

I install Tagbar through Vundle.

LStinson commented 12 years ago

I made a few, probably unrelated, changes yesterday. I'm still trying to figure out how those errors come about.

On Thu, Feb 2, 2012 at 8:05 AM, stardiviner reply@reply.github.com wrote:

I install Tagbar through Vundle.


Reply to this email directly or view it on GitHub: https://github.com/LStinson/TagmaBufMgr/issues/5#issuecomment-3777541

http://lorance.freeshell.org/ (678) 683-9149

LStinson commented 12 years ago

I finally managed to replicate this error after messing around in Vim for a bit. This is unrelated the TagmaBufMgr. I can duplicate it by opening Tagbar with no file then closing Tagbar. I moved TagmaBufMgr out of my bundle path to completely disable it and still experience the error.

On Wed, Feb 1, 2012 at 1:47 AM, stardiviner reply@reply.github.com wrote:

I find one info maybe useful for you. I use command :mgrclor to close TagmaBufMgr first, then close Tagbar window. then I get following error:

Error detected while processing function tagbar#ToggleWindow..79_ToggleWindow..79_CloseWindow: line   12: E716: Key not present in Dictionary: fpath) E116: Invalid arguments for function bufnr(s:known_files.getCurrent().fpath) E15: Invalid expression: bufnr(s:known_files.getCurrent().fpath) line   19: E121: Undefined variable: filebufnr E15: Invalid expression: bufnr('%') != filebufnr Press ENTER or type command to continue


Reply to this email directly or view it on GitHub: https://github.com/LStinson/TagmaBufMgr/issues/5#issuecomment-3754516

http://lorance.freeshell.org/ (678) 683-9149

stardiviner commented 12 years ago

Thanks. I guess I should post this error to Tagbar github.

=> On [2012-02-02 07:25:33 -0800]: Lorance Stinson Said:

I finally managed to replicate this error after messing around in Vim for a bit. This is unrelated the TagmaBufMgr. I can duplicate it by opening Tagbar with no file then closing Tagbar. I moved TagmaBufMgr out of my bundle path to completely disable it and still experience the error.

On Wed, Feb 1, 2012 at 1:47 AM, stardiviner reply@reply.github.com wrote:

I find one info maybe useful for you. I use command :mgrclor to close TagmaBufMgr first, then close Tagbar window. then I get following error:

Error detected while processing function tagbar#ToggleWindow..79_ToggleWindow..79_CloseWindow: line   12: E716: Key not present in Dictionary: fpath) E116: Invalid arguments for function bufnr(s:known_files.getCurrent().fpath) E15: Invalid expression: bufnr(s:known_files.getCurrent().fpath) line   19: E121: Undefined variable: filebufnr E15: Invalid expression: bufnr('%') != filebufnr Press ENTER or type command to continue


Reply to this email directly or view it on GitHub: https://github.com/LStinson/TagmaBufMgr/issues/5#issuecomment-3754516

http://lorance.freeshell.org/ (678) 683-9149


Reply to this email directly or view it on GitHub: https://github.com/LStinson/TagmaBufMgr/issues/5#issuecomment-3779665

stardiviner << =>GPG: 5D9F64D8 Twitter: @numbchild http://stardiviner.dyndns-blog.com/author.html