X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=1f14e5f23944c073c9da799994db26a210b793dc;hb=1c46e36badce4692e1ce044ccaa79e68b042f6fc;hp=985042c13bc666a172f8c2e67400062ef55562f2;hpb=850e6eac79251c87e098359a4f086e7d4f5814cc;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 985042c..1f14e5f 100644 --- a/vimrc +++ b/vimrc @@ -89,9 +89,6 @@ set listchars=trail:- " 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 @@ -136,6 +133,12 @@ else \ ((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 +endif + " Disable Apple style movements in MacVim. if has("gui_macvim") let macvim_skip_cmd_opt_movement = 1 @@ -163,8 +166,3 @@ endif let NERDCreateDefaultMappings = 0 " Map toggle comment. map NERDCommenterToggle - - -" Automatically save and the load the file state (stored in ~/.vim/view). -autocmd BufWrite * mkview -autocmd BufRead * loadview