From 8baab3c8d7a6f22888bd581cd5c6098fd2e4b5a8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 04:44:24 +0200 Subject: Adding upstream version 2:8.1.0875. Signed-off-by: Daniel Baumann --- runtime/macmap.vim | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 runtime/macmap.vim (limited to 'runtime/macmap.vim') diff --git a/runtime/macmap.vim b/runtime/macmap.vim new file mode 100644 index 0000000..dc76f15 --- /dev/null +++ b/runtime/macmap.vim @@ -0,0 +1,75 @@ +" System gvimrc file for Mac OS X +" Author: Benji Fisher +" Last Change: Thu Mar 09 09:00 AM 2006 EST +" +" Define Mac-standard keyboard shortcuts. + +" 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 +" in mappings. + +nnoremap :confirm enew +vmap gv +imap +cmap +omap + +nnoremap :browse confirm e +vmap gv +imap +cmap +omap + +nnoremap :if winheight(2) < 0 confirm enew else confirm close endif +vmap gv +imap +cmap +omap + +nnoremap :if expand("%") == ""browse confirm w elseconfirm wendif +vmap gv +imap +cmap +omap + +nnoremap :browse confirm saveas +vmap gv +imap +cmap +omap + +" From the Edit menu of SimpleText: +nnoremap u +vmap gv +imap +cmap +omap + +vnoremap "+x + +vnoremap "+y + +cnoremap + +nnoremap "+gP +cnoremap + +execute 'vnoremap