A painting of me

Editing Plain Text Files with VIM

   9 February 2007, mid-morning

I use VIM when programming. It’s a text editor, originally for UNIX systems, that is popular amongst programmers. It is famous for its arcane and terse interface. Although meant for working with source code, it works quite well for editing plain old text files, but there are a couple format options you should turn on to make VIM work smarter. :set fo=twan1 will turn on a few useful format options: auto-wrap text to the textwidth, reformat paragraphs when they are changed, and recognize numbered lists. (You will need to turn on autoindent for the numbered list formatting to work properly.) Doing this will make editing README files in VIM a million times easier.

 

Comments

  1. I am so freaking glad I posted this.

  2. A vimcast on hard-wrapping text in VIM.

Don't be shy, you can comment too!

 
Some things to keep in mind: You can style comments using Textile. In particular, *text* will get turned into text and _text_ will get turned into text. You can post a link using the command "linktext":link, so something like "google":http://www.google.com will get turned in to google. I may erase off-topic comments, or edit poorly formatted comments; I do this very rarely.