From 040c1feb212568cf04265e59b26182f8b76057aa Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 9 Nov 2017 19:45:48 +0100 Subject: patch 8.0.1279: initializing menus can be slow Problem: Initializing menus can be slow, especially when there are many keymaps, color schemes, etc. Solution: Do the globbing for runtime files lazlily. (Ken Takata) --- runtime/menu.vim | 153 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 93 insertions(+), 60 deletions(-) (limited to 'runtime/menu.vim') diff --git a/runtime/menu.vim b/runtime/menu.vim index 87ac937a1e..0c9b743f6a 100644 --- a/runtime/menu.vim +++ b/runtime/menu.vim @@ -2,7 +2,7 @@ " You can also use this as a start for your own set of menus. " " Maintainer: Bram Moolenaar -" Last Change: 2017 Mar 04 +" Last Change: 2017 Nov 09 " Note that ":an" (short for ":anoremenu") is often used to make a menu work " in all modes and avoid side effects from mappings defined by the user. @@ -159,7 +159,7 @@ nnoremenu 20.370 &Edit.Put\ &Before[p [p inoremenu &Edit.Put\ &Before[p [p nnoremenu 20.380 &Edit.Put\ &After]p ]p inoremenu &Edit.Put\ &After]p ]p -if has("win32") || has("win16") +if has("win32") vnoremenu 20.390 &Edit.&Deletex x endif noremenu