Refactor s:open_buffers()