vim

vim (previously vi) is a text editor usable from the command line.

Useful commands

https://www.keycdn.com/blog/vim-commands