" System gvimrc file for Mac OS X " Author: Benji Fisher " Last modified: 27 March 2006 " If you want to get more Mac-like behavior, leave the "finish" line " commented out. This may break menu translations. For vim-standard menus, " uncomment this line so that the rest of the file will be ignored. " finish " Avoid loading this twice, since :unmenu commands will throw errors. if exists("s:did_mac_gvimrc") echo "Already loaded Mac menu file." finish else let s:did_mac_gvimrc = 1 endif " TODO: Decide whether to leave it in non-compatible mode. " For now, save and restore. let s:save_cpo = &cpo set cpo&vim " Define mac-standard menu items. " The keyboard shortcuts have been defined in $VIMRUNTIME/macmap.vim . aunmenu &File.&Open\.\.\. amenu 10.310 &File.&Open\.\.\. aunmenu &File.&New amenu 10.325 &File.&New aunmenu &File.&Close amenu 10.330 &File.&Close aunmenu &File.&Save amenu 10.340 &File.&Save aunmenu &File.Save\ &As\.\.\. amenu 10.350 &File.Save\ &As\.\.\. " map ?? " is handled by the OS. " " From the Edit menu of SimpleText: aunmenu &Edit.&Undo amenu 20.310 &Edit.&Undo vunmenu &Edit.Cu&t vmenu 20.340 &Edit.Cu&t vunmenu &Edit.&Copy vmenu 20.350 &Edit.&Copy cunmenu &Edit.&Copy cmenu 20.350 &Edit.&Copy aunmenu &Edit.&Paste nmenu 20.360 &Edit.&Paste cmenu &Edit.&Paste vmenu &Edit.&Paste imenu &Edit.&Paste aunmenu &Edit.&Select\ All amenu 20.400 &Edit.Select\ &All aunmenu &Edit.&Find amenu 20.410 &Edit.&Find amenu 20.420 &Edit.&Next vmenu 20.420 &Edit.Find\ &Selection "9y/9 \:if strlen(@9) > 1 \ exe 'norm!v/' . @9 . '/e' . "CR>" \ else exe "norm!v" endif let &cpo = s:save_cpo