set runtimepath-=~/.vim
set runtimepath^=~/.vim,~/.vim/plugins,~/.vim/runtime
+" Disable modelines as they may cause security problems. Instead use
+" securemodelines (Vim script #1876).
+set nomodeline
+
" When completing paths first use the longest path then display a list of all
" possible files.
set wildmode=longest,list
set virtualedit=block
" Already display matches while typing the search command. This makes spotting
-" errors easily.
+" errors easy.
set incsearch
" Activate syntax folding.
endif
" Make sure xa0 (alt + space) is automatically changed to a normal whitespace
-" if pressed accidentally while in insert mode (happens on Mac sometimes).
+" if pressed accidentally while in insert mode (happens on Mac when alt
+" doesn't send escape).
if has("mac")
imap <Char-0xa0> <Space>
endif