简体   繁体   中英

gvim: add “Close without saving” to tab menu

When I right click on a tab, I get "Close", "New tab", "Open tab..". Now I'm wondering how can I add "Close without saving" option. Is there any way?

This menu is described under :help tabline-menu . As there are no instructions how to manipulate it, this seems to be a fixed list. You'd have to modify the source code and compile your own Vim binary to change it.

If you feel properly motivated, you could implement a patch that allows to modify this. There's a precedence: The right mouse button popup menu inside the buffer can indeed be extended, see :help popup-menu .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM