Open aoberoi opened 12 years ago
That's a great question. I was playing with using autocmd
to automatically layout windows as they appear, but there are a bunch of things in vim that open windows which I don't want arranged by dwm.vim like command-t.
Is there some kind of distinguishing attribute on a window or the buffer it's showing that we could use to conditionally ignore it?
@lmarburger I think these buffers are generally tagged with certain name. The logic would probably be quite complicated though?
vim-powerline achieves something similar by looking at buffer types, file types and buffer names.
(see help 'bt'
and help 'ft'
)
Same goes for NERDTree.. Ctrl-J/K inactive when entering its buffer.
Just wondering if there was any update on this? Im having the same issue with nerdtree. I'd like it to get skipped from the rotation.
The code to this project is surprisingly simple. So simple, that I doubt it would be possible to add this feature without completely rewriting it to use a different approach.
Currently it runs wincmd K
on each split which "Moves the current window to the top using the full width of the screen" and then wincmd H
on the split you want to focus which "Moves the current window to the far left using the full height of the screen".
There is no way that I can imagine to ignore some windows using this approach.
meet the same problem, which change the layout of NERDTree and tagbar
Is there a way to exclude one window from the layout, e.g. the MiniBufExpl window used to display buffers? Right now that window gets pushed into the right side stack which makes it less useful.
Screenshot: