Kristof Kovacs

Software architect, consultant

Writeroom in VIM

Photo courtesy of miskan

Using a full-screen, black editor can be good for reducing distractions in writing, we all know that. If you are a writer, you can buy WriteRoom or some of the similar products. But if you are a programmer, and you use MacVIM anyway (you do, don't you?), then there is a simpler and better solution for you.

Put this into your ~/.vimrc:

:map K :set linebreak columns=999 guioptions=-R lines=999 fullscreen<cr> :colorscheme ron<cr>

From now after, You can hit "K" (or whatever key combination you map this little macro to), and you have a fullscreen, exclusive writing area to work on. No distractions.