On Tue, Sep 10, 2013 at 3:18 PM, leob wrote: > > Is there a way of preventing cmd+Q from closing when there are more than one > buffer open via splits? Note that i'm not asking about tab's.
You could write a Vim function that conditioned on how many splits there are either does nothing, or calls ":macaction terminate:". Then bind this to <D-q>. Since Cmd+Q is already bound to a menu item you'll have to unbind it first, see ":h cmd-key". Oh, no. Actually this won't work. Since the Quit item is under the special "MacVim" menu there is no way to undbind Cmd+Q. You could bind the above to some other key though (Cmd+Shift+Q? Ctrl+Q?). Other than that you'd have to edit the source code, but getting the number of open splits from Vim inside the MacVim process is probably going to be a bit tricky. Björn -- -- You received this message from the "vim_mac" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_mac" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
