>I like the way that (the confirm dialog) works when I run vim from the
terminal.  It
>shows the prompt on the command line, and it allows me to press "Y",
>"N" or "C".  I have a screenshot here:
>http://notesmine.com/vim_confim_dialog
> How can I do this in MacVim?

I FOUND THE SOLUTION!!!!

:set guioptions+=c

The above will tell Vim to show "console" dialogs instead of popup dialogs
for simple choices.

Hope this helps,
--Nate


Nate-37 wrote:
> 
> 
> Hello,
> 
> I have a function that prompts the user for whether they want to save
> the current file.
> 
> It uses the "confirm" function:
> 
> confirm("Save changes?", "&Yes\n&No\n&Cancel")
> 
> I like the way that it functions when I run vim from the terminal.  It
> shows the prompt on the command line, and it allows me to press "Y",
> "N" or "C".  I have a screenshot here:
> http://notesmine.com/vim_confim_dialog
> 
> When I run it in MacVim, it drops down a prompt (which is o.k.), but I
> can't press "C" to cancel.  I **can** press N for "No". (Why, oh why
> does OSX do this?)
> Here's a screenshot:
> http://notesmine.com/vim_confim_dialog#GUI
> 
> Is there a way to force the confirm function to show the prompt in
> text mode?
> 
> If not, is there a way to force OSX to recognize the "C" for
> cancelling?  I *can* press ESC, and it acts as cancel
> 
> Thanks,
> --Nate
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Force-%27confirm%27-function-to-use-text-mode--tp19996807p20588936.html
Sent from the Vim - Mac mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to