Scratch buffers
When you opened example.rs in the last step, exercise.txt didn’t go
anywhere. Helix keeps every file you open loaded in memory as a buffer,
and switching files is really switching buffers.
You met the buffer picker in lesson 12: the list of everything that’s loaded, filtered the same way as the file picker. The checklist starts with two things from that lesson: load a file by name, then come back with the picker.
A buffer doesn’t have to be a file. :new opens an empty scratch buffer
with no filename at all, handy for pasting something you want to look at
without saving it. Two things to know: Helix throws an empty scratch buffer
away as soon as you leave it, so type something in first, and once it has
text the picker shows it as [scratch] with a + for the unsaved change.
After that warm-up, make a scratch buffer, put a word in it, and use the picker to move between it and this file.
Note
Buffers pile up over a long session. :buffer-close (or :bc) closes the
current one.