dwm.vim icon indicating copy to clipboard operation
dwm.vim copied to clipboard

Compatibility with MiniBufferExplorer

Open aoberoi opened this issue 11 years ago • 7 comments

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

aoberoi avatar Aug 28 '12 21:08 aoberoi

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 avatar Aug 29 '12 10:08 lmarburger

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

spolu avatar Aug 31 '12 07:08 spolu

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

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

friggeri avatar Aug 31 '12 08:08 friggeri

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

ghost avatar Jan 10 '13 09:01 ghost

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.

diego898 avatar May 06 '13 23:05 diego898

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.

captbaritone avatar May 07 '13 00:05 captbaritone

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

Zuckonit avatar Jan 18 '14 04:01 Zuckonit