]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Add support for Mac OS X Leopard.
authorSimon Ruderich <simon@ruderich.org>
Sun, 12 Jul 2009 21:39:04 +0000 (23:39 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 12 Jul 2009 21:45:48 +0000 (23:45 +0200)
vimrc

diff --git a/vimrc b/vimrc
index 66eb955535fc2ab6c8d7849d4bd6459a696f4bb3..59926eb4a784828bd906aa7f3522cb2db5c628a5 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -176,8 +176,9 @@ endif
 
 " Make sure xa0 (alt + space) is automatically changed to a normal whitespace
 " if pressed accidentally while in insert mode (happens on Mac when alt
-" doesn't send escape).
-if has('mac')
+" doesn't send escape). filereadable() is necessary for Leopard were 'mac' is
+" no longer set on the console.
+if has('mac') || filereadable('/Users/.localized')
     imap <Char-0xa0> <Space>
 endif