From 5cd07a9436b3621643b3dc17b7891c8fbab0aa12 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 26 Oct 2008 12:13:55 +0100 Subject: [PATCH] Added formatoptions. --- vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.44.2