Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently converted from TextMate to MacVim with Janus for editing my markdown files.

How can I reformat an old markdown file so that lines longer than 79 characters are converted from a single line into multiple lines?

share|improve this question

1 Answer 1

Try this:

:set textwidth=79

Then gggq}

share|improve this answer
Can you please explain what this does? It worked, I'm just curious because it was awesome. –  Kyle Jul 27 at 18:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.