" 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