originally published Aug 29, 2007 on http://mostlycli.blogspot.com/
In my never-ending quest to prove that you can do anything in the CLI that you can do in a GUI, this is my attempt at word processing in the command line. There is no true word processor for the CLI, that I'm aware of, but the results of using the Latex typesetting language create a good enough end result. If your not familiar with Latex typesetting language, you can sort of compare it too html markup language. With Latex you use code to assign your document layout, font type, font size and other document characteristics. A skilled Latex artist can create absolutely beautiful, high quality and professional documents.
In the GUI, I'd recommend using Lyx a great WYSIWYG Latex editor, but we're in CLI land here so we'll be using vim-latexsuite a fantastic plug-in to a brillant text editor. In Ubuntu, just 'sudo apt-get install vim-latexsuite' and you are good as gold. The vim-latex-suite has a very in-depth guide built-in. You can access the guide once in vim by typing: