+" When joining lines only add one space after a sentence.
+set nojoinspaces
+
+" Allow backspacing over autoindent and line breaks.
+set backspace=indent,eol
+
+" Start 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
+
+" Allow virtual editing (cursor can be positioned anywhere, even when there is
+" no character) in visual block mode.
+set virtualedit=block
+
+" Already display matches while typing the search command. This makes spotting
+" errors easy.
+set incsearch
+
+" Activate syntax folding.
+if has('folding')
+ set foldmethod=syntax
+ set foldcolumn=2
+ set foldlevel=99 " no closed folds at default, 'foldenable' would disable
+ " folding which is not what I want
+endif
+
+" Only check for case if the searched word contains a capital character.
+set ignorecase
+set smartcase
+
+" Activate spell checking, use English as default. Don't use spell checking
+" when diffing.
+if v:version >= 700 && !&diff
+ set spell
+ set spelllang=en_us
+endif
+
+" Allow buffers with changes to be hidden.
+set hidden
+
+
+" DISPLAY SETTINGS
+
+" Use a dark background.
+set background=dark
+