Opening multiple files
Now that you know how to hop between two buffers with gp and gn, let’s open a few more files at once.
Helix opens files with the :e command — type :e followed by a space and the filename. You can open as many files as you want, and they all stay in your buffer list while you work on other things. The list is kept in the order you opened the files, and gp and gn walk along it one buffer at a time.
There are three other files alongside the editor’s exercise.txt: a.txt, b.txt, and c.txt.
Work through the checklist below: open each of the other files with :e, then walk back along the list with gp until you reach exercise.txt again. In the next step you’ll learn a faster way to get around.