This repository was archived by the owner on Dec 28, 2019. It is now read-only.
Ensured the padding buffer is unlisted and wiped out when leaving VimRoom #31
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 VimRoomThe 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.