Here is a patch to fix this issue as I think it should be fixed.
Note: I have moved the 'macmap.vim' script to 'runtime/plugin', and
modified it so it will check a flag before starting. Also, it will
only run on mac ...
Patch follows:
--- src/main.c.orig 2009-04-07 19:34:01.000000000 +0300
+++ src/main.c 2009-04-07 19:35:03.000000000 +0300
@@ -2769,9 +2769,6 @@
#ifdef SYS_VIMRC_FILE
(void)do_source((char_u *)SYS_VIMRC_FILE, FALSE, DOSO_NONE);
#endif
-#ifdef MACOS_X
- (void)do_source((char_u *)"$VIMRUNTIME/macmap.vim", FALSE,
DOSO_NONE);
-#endif
/*
* Try to read initialization commands from the following places:
--- runtime/plugin/macmap.vim.orig 2009-04-07 19:35:43.000000000 +0300
+++ runtime/plugin/macmap.vim 2009-04-07 22:59:21.000000000 +0300
@@ -7,6 +7,14 @@
" We don't change 'cpoptions' here, because it would not be set
properly when
" a .vimrc file is found later. Thus don't use line continuation and
use
" <special> in mappings.
+if !has("mac")
+ finish
+endif
+
+if exists("g:macmap_loaded")
+ finish
+endif
+let g:macmap_loaded=1
nnoremap <special> <D-n> :confirm enew<CR>
vmap <special> <D-n> <Esc><D-n>gv
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---