spolu / dwm.vim

Tiled Window Management for Vim
http://www.vim.org/scripts/script.php?script_id=4186
700 stars 76 forks source link

Compatibility with MiniBufferExplorer #24

Open aoberoi opened 12 years ago

aoberoi commented 12 years ago

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:

Layout

lmarburger commented 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?

spolu commented 12 years ago

@lmarburger I think these buffers are generally tagged with certain name. The logic would probably be quite complicated though?

friggeri commented 12 years ago

vim-powerline achieves something similar by looking at buffer types, file types and buffer names.

(see help 'bt' and help 'ft')

ghost commented 11 years ago

Same goes for NERDTree.. Ctrl-J/K inactive when entering its buffer.

diego898 commented 11 years ago

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.

captbaritone commented 11 years ago

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.

Zuckonit commented 10 years ago

meet the same problem, which change the layout of NERDTree and tagbar