" EDITOR SETTINGS
-" Don't use any modelines.
-set nomodeline
-
" When completing paths first use the longest path then display a list of all
" possible files.
set wildmode=longest,list
\ ((getcmdtype() == ':' && getcmdpos() <= 2) ? 'q' : 'Q')
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 has("mac")
+ imap <Char-0xa0> <Space>
+endif
+
" Disable Apple style movements in MacVim.
if has("gui_macvim")
let macvim_skip_cmd_opt_movement = 1
let NERDCreateDefaultMappings = 0
" Map toggle comment.
map <Leader><Leader> <plug>NERDCommenterToggle
-
-
-" Automatically save and the load the file state (stored in ~/.vim/view).
-autocmd BufWrite * mkview
-autocmd BufRead * loadview