From: Simon Ruderich Date: Tue, 17 Feb 2009 10:52:01 +0000 (+0100) Subject: Fix inserting xa0 on Mac. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=77fb9cc20510d75cdc42c25b66b9f3c31b64d313;p=config%2Fdotfiles.git Fix inserting xa0 on Mac. This happens sometimes when pressing alt-space on Mac. As the character is not a space but displayed like one it can cause some problems. --- diff --git a/vimrc b/vimrc index 985042c..e44b021 100644 --- a/vimrc +++ b/vimrc @@ -136,6 +136,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