A terminal editor runs inside the terminal rather than in a separate graphical window. You do not need one to understand the other lessons. This walkthrough uses Neovim (nvim) if it is already installed; installation and package management are outside this chapter. In a fresh disposable directory, open a new file:
nvim field-notes.txt
Neovim starts in normal mode, where keys control navigation and editing rather than simply adding characters. Press i to enter insert mode and type Clouds clearing. Press Escape to return to normal mode. Type :w, then Enter, to write the buffer to disk; type :q, then Enter, to quit. :wq combines saving and quitting.
Back at the shell, cat field-notes.txt displays the saved line. If there are unsaved edits, :q normally refuses to quit. Escape followed by :q! and Enter quits without saving those edits, so use it only if discarding them is intended. A save error can mean the path or access is wrong; inspect it rather than opening the editor with sudo by habit.
Removing a leaked password from the visible file does not remove copies or history. Treat it as exposed, rotate or revoke it, and follow the applicable incident procedure.