How to open multiple files and switch between them in nano text editor?

s-hunter picture s-hunter · Nov 6, 2013 · Viewed 23.3k times · Source

In emacs, you can open new files with Ctrl+X, Ctrl+F

And go to the previous file with Ctrl+B, and go to the next file with Ctrl+N.

How to do this in nano text editor? While nano is launched, and then open new files, and how to switch between the opened files in the nano text editor?

Answer

Roger Pate picture Roger Pate · Nov 6, 2013

Put "set multibuffer" into ~/.nanorc or start nano with -F. Toggle this inside nano with alt-F. You can now read files into their own buffer with ctrl-R.

Use alt-comma and alt-period to go forward and backward in the file list.