mtth / scratch.vim

Unobtrusive scratch window
MIT License
395 stars 32 forks source link

Vim closes when switching to scratch buffer #6

Closed sloria closed 9 years ago

sloria commented 9 years ago

Thanks for the plugin!

After opening and closing the scratch buffer, the scratch buffer is still in the buffer list. When returning to the scratch buffer, e.g. with :b __Scratch__, vim closes. This is especially annoying when cycling through buffers, only to have vim exit when you hit the scratch buffer.

mtth commented 9 years ago

After 563dc99ba5c2eac10f3a3a874df2eed6dfe9c2e2, the buffer shouldn't be listed anymore (so commands like :bnext will skip it, and prevent this behavior). Feel free to reopen this issue if this doesn't solve your use-case.

sloria commented 9 years ago

Works great. Thanks!