From 77fb9cc20510d75cdc42c25b66b9f3c31b64d313 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 17 Feb 2009 11:52:01 +0100 Subject: [PATCH] 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. --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.45.2