Text Editors#

You will need to edit files directly through the command line when using UNIX. There are quite a few text editors available for UNIX. Below we provide some information about some of the favorite text editors from CESM developers. This list is not comprehensive, so if you have another editor you prefer you can use that.

Vi#

Vi is a text editor included with most UNIX systems, even embedded ones. It was designed to be simple yet powerful for text manipulation. It’s a modal text editor, which means has both an insert and command mode. Vi doesn’t provide a list of keyboard shortcuts on the screen.

NOTE: vi does not need to be loaded in your environment to be used.

Vim#

Vim (Vi IMproved) is a clone of Vi but offers more features than Vi. It’s free and open source and can be used both at the command-line or in a graphical user interface (GUI).

NOTE: vim does not need to be loaded in your environment to be used.

Nano#

Nano is a text editor that uses a command line interface. It emulates the Pico text editor and in addition to basic text editing, nanco has features such as an interactive search-and-replace, undo/redo, etc.

NOTE: nano must be loaded as a module in your HPC environment. See section (LINK).

Emacs#

Emacs is an extensible, customizable, and self-documenting editor. Emacs opens a GUI to your computer and requires X11 forwarding. Once open, it can be used similar to a normal document including scrolling.

NOTE: emacs does not need to be loaded in your environment to be used. While it will work from the terminal command line, it does not work in the Jupyter environment.