From: Simon Ruderich Date: Sun, 26 Oct 2008 11:13:55 +0000 (+0100) Subject: Added formatoptions. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=5cd07a9436b3621643b3dc17b7891c8fbab0aa12;p=config%2Fdotfiles.git Added formatoptions. --- diff --git a/vimrc b/vimrc index 496858e..7f8700e 100644 --- a/vimrc +++ b/vimrc @@ -52,6 +52,14 @@ set nojoinspaces " Allow backspacing over autoindent, line breaks and insert mode starts. set backspace=indent,eol,start +" Add a comment when hitting enter after a commented line (r) and when using o +" or O around a commented line (o). +set formatoptions+=ro +" Don't break a line if was already longer then 'textwidth' when insert mode +" started. +set formatoptions+=l + + " Don't use any modelines. set nomodeline