Set hidden so that we don't lose undo

Normally when switching buffers the old file is closed, and we lose undo
history.  With `:set hidden` the old buffer is simply hidden, so we
shouldn't lose anything.