aboutsummaryrefslogtreecommitdiff
path: root/runtime/menu.vim
Commit message (Collapse)AuthorAge
* vim-patch:d5f173c: runtime(menu): fix space before Tab and trailing spacezeertzjq2026-01-20
| | | | | | closes: vim/vim#19209 https://github.com/vim/vim/commit/d5f173cf90a123e5116f0b54f19eb7d85dcc7acf
* vim-patch:658cc10: runtime: Changed old "Sponsor" menu item name to a new onezeertzjq2026-01-19
| | | | | | | | | | | | | | | | | | | | Problem: There is an unavailable "Sponsor/Register" item in the Help menu. Solution: The item name has been unified to "Sponsor". The item names of tlmenu, which are only valid in terminal mode, were not updated, so unnecessary items that were unavailable were displayed. This item is also very confusing when creating menu translations. In addition, the indentation of an item with the same name in the regular menu has been corrected. closes: vim/vim#19201 https://github.com/vim/vim/commit/658cc102f61d865d20d89e9c90be46e831cc16e4 Co-authored-by: Muraoka Taro <koron.kaoriya@gmail.com>
* vim-patch:9.1.1989: Vim intro screen shows register messagezeertzjq2026-01-19
| | | | | | | | | | | | | | | Problem: Vim intro screen shows register message (after v9.1.1893) Solution: Remove the register message, registering is no longer useful and possible. fixes: vim/vim#18933 closes: vim/vim#18934 Signed-off-by: https://github.com/vim/vim/commit/ca12f62d0a6a49db0e1956c5c217e7e00e0366c7 Co-authored-by: Christian Brabandt <cb@256bit.org>
* vim-patch:9.1.1623: Buffer menu does not handle unicode names correctly (#35353)zeertzjq2025-08-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Buffer menu does not handle unicode names correctly (after v9.1.1622) Solution: Fix the BMHash() function (Yee Cheng Chin) The Buffers menu uses a BMHash() function to generate a sortable number to be used for the menu index. It used a naive (and incorrect) way of encoding multiple ASCII values into a single integer, but assumes each character to be only in the ASCII 32-96 range. This means if we use non-ASCII file names (e.g. Unicode values like CJK or emojis) we get integer underflow and overflow, causing the menu index to wrap around. Vim's GUI implementations internally use a signed 32-bit integer for the `gui_mch_add_menu_item()` function and so we need to make sure the menu index is in the (0, 2^31-1) range. To do this, if the file name starts with a non-ASCII value, we just use the first character's value and set the high bit so it sorts after the other ASCII ones. Otherwise, we just take the first 5 characters, and use 5 bit for each character to encode a 30-bit number that can be sorted. This means Unicode file names won't be sorted beyond the first character. This is likely going to be fine as there are lots of ways to query buffers. related: vim/vim#17403 closes: vim/vim#17928 https://github.com/vim/vim/commit/8f9de4991e84dfdc9bcc9dad0eaa2b3544ef963e Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
* vim-patch:9.1.1622: Patch v9.1.1432 causes performance regressions (#35288)zeertzjq2025-08-10
| | | | | | | | | | | | | | | | | | | | | | Problem: Patch v9.1.1432 causes performance regressions Solution: Revert "patch 9.1.1432: GTK GUI: Buffer menu does not handle unicode correctly" (Yee Cheng Chin). This reverts commit 08896dd330c6dc8324618fde482db968e6f71088. The previous change to support Unicode characters properly in the buffers menu resorted to removing all buffer menus and re-add the buffers after doing a sort, per each buffer addition. This was quite slow because if Vim is trying to load in multiple buffers at once (e.g. when loading a session) this scales in O(n^2) and Vim can freeze for dozens of seconds when adding a few hundred buffers. related: vim/vim#17405 related: vim/vim#17928 fixes: vim/vim#17897 https://github.com/vim/vim/commit/cda0d17f5937c9e09d6821da64e57d589fd3c404 Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
* vim-patch:9.1.1432: GTK GUI: Buffer menu does not handle unicode correctly ↵zeertzjq2025-06-05
| | | | | | | | | | | | | (#34313) Problem: GTK GUI: Buffer menu does not handle unicode correctly Solution: Get rid of the BMHash() function (SUN Haitao) fixes: vim/vim#17403 closes: vim/vim#17405 https://github.com/vim/vim/commit/08896dd330c6dc8324618fde482db968e6f71088 Co-authored-by: SUN Haitao <sunhaitao@devtaste.com>
* vim-patch:a420547: runtime(misc): Use consistent "Vim script" spelling (#30805)zeertzjq2024-10-14
| | | | | | | | | References: https://groups.google.com/g/vim_dev/c/3Z5yM8KER2w/m/wAqws0QSEAAJ closes: vim/vim#15863 https://github.com/vim/vim/commit/a4205471adae39c80fb7f151a4f33051fcb80001 Co-authored-by: h-east <h.east.727@gmail.com>
* vim-patch:e059fae10044Christian Clason2023-08-24
| | | | | | | | | | | | | | runtime(menu): define shortcut for File->Open Tab (vim/vim#12895) Seems missing as noted by Antonio Giovanni Colombo. So add it and use the 'T' as shortcut, which does not seem to be used in the File dialog. Verified on Windows. https://github.com/vim/vim/commit/e059fae100448fee4b581dd5d90ee853ea18de7e Co-authored-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Antonio Giovanni Colombo <azc100@gmail.com>
* vim-patch:e978b4534a5e (#24697)Sean Dewar2023-08-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Farewell to Bram and dedicate upcoming Vim 9.1 to him (vim/vim#12749) https://github.com/vim/vim/commit/e978b4534a5e10471108259118c0ef791106fd92 Also update the header for the following files that were converted to Vim9 script upstream: - autoload/ccomplete.lua (vim9jitted) - ftplugin.vim - ftplugof.vim - indent.vim - indent/vim.vim - makemenu.vim This also updates the "Last Change" dates, even if some changes (due to rewrites to Vim9 script) were not ported. There's still a few other places where Bram is still mentioned as a maintainer in the files we and Vim have: - ftplugin/bash.vim - indent/bash.vim - indent/html.vim - indent/mail.vim - macros/accents.vim - macros/editexisting.vim - syntax/bash.vim - syntax/shared/typescriptcommon.vim - syntax/tar.vim - syntax/typescript.vim - syntax/typescriptreact.vim - syntax/zimbu.vim Maybe future patches will address that. Also exclude changes to .po files that didn't apply automatically (the `:messages` maintainer string isn't used in Nvim anyway). Co-authored-by: Christian Brabandt <cb@256bit.org>
* vim-patch:b7398fe41c9e (#23627)Christian Clason2023-05-15
| | | | | | | Update runtime files https://github.com/vim/vim/commit/b7398fe41c9e1e731d058105a34158871ee83e3f Co-authored-by: Bram Moolenaar <Bram@vim.org>
* feat!: remove hardcopyLewis Russell2023-01-03
| | | Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
* vim-patch:86b4816766d9 (#21314)Christian Clason2022-12-08
| | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/86b4816766d976a7ecd4403eca1f8bf6b4105800 vim-patch:9.0.1029: autoload directory missing from distribution Problem: Autoload directory missing from distribution. Solution: Add the autoload/zig directory to the list of distributed files. https://github.com/vim/vim/commit/84dbf855fb2d883481f74ad0ccf3df3f8837e6bf Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:fa3b72348d88zeertzjq2022-12-07
| | | | | | | | Update runtime files https://github.com/vim/vim/commit/fa3b72348d88343390fbe212cfc230fec1602fc2 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.1768: cannot use the help menu from a terminal windowzeertzjq2022-12-07
| | | | | | | | | Problem: Cannot use the help menu from a terminal window. Solution: Add ":tlnoremenu" commands. (Yee Cheng Chin, closes vim/vim#7023) https://github.com/vim/vim/commit/b45cd36bd90f71e4a35b1ef1f75a3bedef6d8bac Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.0478: new buffers are not added to the Buffers menuzeertzjq2022-08-05
| | | | | | Problem: New buffers are not added to the Buffers menu. Solution: Turn number into string. (Yee Cheng Chin, closes vim/vim#5864) https://github.com/vim/vim/commit/5908fdf72fa1995735e38c46f254ddde81a87c1f
* vim-patch:8.2.0413: buffer menu does not handle special buffers properlyzeertzjq2022-08-05
| | | | | | | | | Problem: Buffer menu does not handle special buffers properly. Solution: Keep a dictionary with buffer names to reliably keep track of entries. Also trigger BufFilePre and BufFilePost for command-line and terminal buffers when the name changes. https://github.com/vim/vim/commit/5e94a29ebbde10dd973d58f1adba9a2fc83877d1
* vim-patch:8.1.0487: no menus specifically for the terminal windowzeertzjq2022-07-01
| | | | | | | | Problem: No menus specifically for the terminal window. Solution: Add :tlmenu. (Yee Cheng Chin, closes vim/vim#3439) Add a menu test. https://github.com/vim/vim/commit/4c5d815256099b50eca2ec5bf8f9aaa67a890211 ADDR_OHTER comes from patch 8.1.1241, which has already been ported.
* vim-patch:partial 1588bc8ebee2 (#17656)Christian Clason2022-03-09
| | | | | | Update runtime files https://github.com/vim/vim/commit/1588bc8ebee22f2855f27273fc2234fff370f86c omit: doc updates
* vim-patch:65e0d77a66b7Jan Edmund Lazo2021-04-28
| | | | | | | Update runtime files https://github.com/vim/vim/commit/65e0d77a66b7e50beb562ad554ace46c32ef8f0f Omit usr_46.txt because of vim9.
* vim-patch:5ef1c6a4838aJan Edmund Lazo2021-04-27
| | | | | | | Update runtime files https://github.com/vim/vim/commit/5ef1c6a4838a9629b793f3ae676f72a764171b00 "scrollfocus" is for Windows GUI only so it is N/A.
* vim-patch:5be4ceecea55Jan Edmund Lazo2021-04-27
| | | | | Update runtime files. https://github.com/vim/vim/commit/5be4ceecea5520265066eac972460ebb1cdf05e7
* vim-patch:8.1.2416: loading menus sets v:errmsgJan Edmund Lazo2021-04-11
| | | | | | Problem: Loading menus sets v:errmsg. Solution: Avoid setting v:errmsg and add a test for that. (Jason Franklin) https://github.com/vim/vim/commit/e24c5b3332b453175e5f73423884087a4aef1247
* vim-patch:30e9b3c42567 (#13936)Volodymyr Kot2021-03-03
| | | | Update runtime files https://github.com/vim/vim/commit/30e9b3c4256710781c3bd64efb33f138e4e074b3
* vim-patch:314dd79cac2aJustin M. Keyes2019-07-29
| | | | | Update runtime files. https://github.com/vim/vim/commit/314dd79cac2adc10304212d1980d23ecf6782cfc
* vim-patch:fc65cabb15d0Justin M. Keyes2018-10-29
| | | | | | | | | | | | Update runtime files. https://github.com/vim/vim/commit/fc65cabb15d0236bce001ad78e12a40511caf941 --- vim-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)
* vim-patch:6dc819b1299eJustin M. Keyes2018-10-29
| | | | | Updated runtime and language files. https://github.com/vim/vim/commit/6dc819b1299e1d9f99303568772ade544d5c1322
* vim-patch:7c63fbc46e21Justin M. Keyes2018-10-29
| | | | | Updated runtime files. https://github.com/vim/vim/commit/7c63fbc46e218cad266641a743a6c1353c2f00d4
* vim-patch:214641f77df6Justin M. Keyes2017-11-06
| | | | | | | | | Runtime file updates. https://github.com/vim/vim/commit/214641f77df6f318a4b3a0b09723c19859a103f4 N/A: vim-patch:26a280c47a1c
* vim-patch:3df0173fa6d0Justin M. Keyes2017-05-01
| | | | | | Updated runtime files. https://github.com/vim/vim/commit/3df0173fa6d0418e89ef4e9c1d04a97c92eec27c
* vim-patch:7.4.2135lonerover2017-03-11
| | | | | | | Problem: Various tiny issues. Solution: Update comments, white space, etc. https://github.com/vim/vim/commit/89eaa4185efacab253b23a182c1c8a7bbf1096c9
* vim-patch:42ebd06James McCoy2017-02-27
| | | | | | Update runtime files. https://github.com/vim/vim/commit/42ebd066422d73cdb7bda6a1dc828a3dd022dec8
* Remove Amiga remnantsMichael Reed2014-12-19
| | | | | | | | | Notes regarding the removal of specific items: - Aztec C: only on the Amiga. - mch_check_win(): doesn't exist anymore. - Comment in ex_cmds.c: It seems the context for this comment was removed, but the comment was inadvertantly left alone.
* Remove VMS remnantsMichael Reed2014-12-19
|
* docs: Remove Photon remnantsMichael Reed2014-12-09
| | | | | Also get rid of some platform references made irrelevant by the removal of their respective platform specific GUI code.
* docs: Remove EBCDIC remnantsMichael Reed2014-12-09
|
* Remove OS/2 referencesMichael Reed2014-11-27
| | | | | Paul Slootman was removed from the top of os_unix.c as OS/2 is no longer supported, but is still credited in runtime/doc/intro.txt.
* re-integrate runtime/ vim-patch:0 #938Justin M. Keyes2014-07-29
Vim runtime files based on 7.4.384 / hg changeset 7090d7f160f7 Excluding: Amiga icons (*.info, icons/) doc/hangulin.txt tutor/ spell/ lang/ (only used for menu translations) macros/maze/, macros/hanoi/, macros/life/, macros/urm/ These were used to test vi compatibility. termcap "Demonstration of a termcap file (for the Amiga and Archimedes)" Helped-by: Rich Wareham <rjw57@cam.ac.uk> Helped-by: John <john.schmidt.h@gmail.com> Helped-by: Yann <yann@yann-salaun.com> Helped-by: Christophe Badoit <c.badoit@lesiteimmo.com> Helped-by: drasill <github@tof2k.com> Helped-by: Tae Sandoval Murgan <taecilla@gmail.com> Helped-by: Lowe Thiderman <lowe.thiderman@gmail.com>