spolu / dwm.vim

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

Push master back to stack on C-Space #46

Closed n4kz closed 11 years ago

n4kz commented 11 years ago

Now DWM_Focus call in master buffer does nothing (except unwanted cursor position change in some cases, probably due to buffer resize). Suggested behaviour - switch back to previously selected buffer if any.

spolu commented 11 years ago

Very nice!

n4kz commented 11 years ago

Thank you.

Probably would be better to call wincmd w instead of wincmd p to select buffer from stack top. Sometimes wincmd p is not working, because previous buffer is same as current. I have not investigated this case yet.

spolu commented 11 years ago

wincmd w seems to work pretty well.

spolu commented 11 years ago

If you confirm that it's better, can you make a pull request for that?

n4kz commented 11 years ago

Okay. Right after closing current buffer wincmd p is not working.

Also noticed that help buffers have slightly different behaviour than normal ones.