mikewest/vimroom — pull request #31 by walkermatt (2012-04-27 10:32:42+00:00)
Title: Ensured the padding buffer is unlisted and wiped out when leaving VimRoom

Hi Mike,

I've been using VimRoom for a few weeks and find it works great in full screen. I use the LustyJuggler for switching buffers and found that the padding buffer called `new` was appearing in the buffer list once I'd used VimRoom hence the small changes:

__Ensure that the padding buffer is not listed when in VimRoom__ by specifying:

`setlocal nobuflisted`
`setlocal buftype=nofile`
`setlocal bufhidden=delete`

__Make sure the padding buffer is wiped out (and hence does not even appear when you `:ls!`) when leaving VimRoom__

The padding buffer has been given the name of `__vimroom__` to minimise clashes with real buffers and a check has been put in when leaving VimRoom to wipeout this buffer if it's found.

I've also refactored the code to set the buffer properties into a function (`s:set_up_padding_buffer`) to reduce duplication.

Thanks,

Matt.