vim (previously vi) is a text editor usable from the command line.
vim
vi
https://www.keycdn.com/blog/vim-commands