Mucking with Vim

This is basic stuff but I am trying to get my Vim setup working right so that I get proper line wraps and other usability/viewport niceness when typing markdown files in Vim. I think I got it by adding the following commands to my Vim syntax/configuration file for Markdown files (mkd.vim):

set wrap
set linebreak tw=80

I also forced Vim to notice that screen supports 256 colors:

set t_Co=256

Now when I type a markdown file it hard wraps by word at 80 characters, which makes the whole thing easier to work with. Additionally, I can actually use color schemes that aren’t the default. It’s amazing.

Yes, soft wraps are “good” but when it comes to plain text they don’t always work the way we would really prefer.

— Steve

Posted on 02 November 2011