Autocmd to control which window a new buffer gets loaded into

1 view
Skip to first unread message

Ryan

unread,
Apr 21, 2008, 8:22:01 PM4/21/08
to vim_use
I just spent the better part of a day hacking the project.vim plugin
to get it to load in the previous window that does not have the tag
list plug (buf name = __Tag_List__) or mini buf explorer plugin (buf
name = -MiniBufExplorer). I am curious can I create an autocmd to
control which windows get changed. So, when ever and edit is executed
my autocmd would check which buffer is load in the window. If the
buffer is a special on (i.e. one used by a plugin), redirect the
loading of the buffer to another window or split a new if no other
ones exist. This would be really slick. Thanks for your time!

Cheers,
Ryan
Reply all
Reply to author
Forward
0 new messages