For at least a year now I’ve been meaning to configure Vim to auto-wrap at 80 characters for these files, and only this week got round to googling it. First a Filetype for Markdown:
autocmd BufRead,BufNewFile *.md set filetype=Markdown
And then for this file type set the width to wrap at…
au Filetype Markdown setlocal wrap textwidth=80
To stay up-to-date with the latest tech news and views, be sure to check out our weekly tech round-up posts - and sign up to our mailing list to have them delivered direct to your inbox.