Document format for writing homeworks in Vim

423 views Asked by At

I'm a college student majoring in CS, and that means I spend a lot of time poking around in vim. I'm still a complete noob, but I love editing text in the terminal--it's more fun than writing documents has any right to be.

However, I'm curious if there's a basic, low-frills document format I can use (from within vim) to typeset my homework assignments. I'm familiar enough with LaTeX, and if it were possible I'd use it for everything, but it has two main disadvantages:

  1. It takes a long time to write an entire LaTeX document, and
  2. LaTeX doesn't handle code very well.

With that in mind, I'd like to know if some format exists which addresses both these needs and is still easy to hash out quickly from a terminal-based text editor. I use vim for literally everything else I write, so the need to keep LibreOffice Writer around just for homeworks seems a bit overbearing to me.

Thanks!

1

There are 1 answers

1
Ingo Karkat On BEST ANSWER

I would tend towards something light like Markdown, but the needed capabilities depend on what requirements you have for the output (formatting and styling).

I find the AsciiDoc project quite interesting. From their website:

AsciiDoc is a text document format for writing notes, documentation, articles, books, ebooks, slideshows, web pages, blogs and UNIX man pages. AsciiDoc files can be translated to many formats including HTML, PDF, EPUB, man page. AsciiDoc is highly configurable: both the AsciiDoc source file syntax and the backend output markups (which can be almost any type of SGML/XML markup) can be customized and extended by the user.

It even comes with a Vim syntax.