On Mon, 24 Sep 2018 12:32:42 +0100
Patrick O'Callaghan <pocallaghan(a)gmail.com> wrote:
I'm looking for a simple terminal-based viewer for Markdown
files. I
*don't* want an editor. Think 'less', not 'emacs'. I don't mind
if it
wants to pop up a window to show rich text, but it's not critical.
It seems remarkably* difficult to find such a beast.
So, of course, I'm going to recommend an editor - vim, in its view
form, which makes it readonly (same as vim -R)
It has a plugin for markdown, and will highlight keywords.
Perhaps you don't like modal editors. The movement keys all work, and
gg takes you to the top and G takes you to the bottom. Just like
less, / is the search character. When you are done, enter :q! , and you
will exit with any changes discarded. If you get in trouble, just hit
ESC several times to get back to command mode, and the u [ndo] several
times to undo any inadvertent changes. This should not happen with
view, though.