Is there any way to have the confirm function place the choices on the same line as the msg prompt?confirm(Yes no question, &Yes\n&No, 2)Instead ofYes no question(Y)es, [N]o: it would save a message area scroll if it wasYes no question (Y)es, [N]o:Docs mention adding \n to msg for newlines in the prompt, but looking for a way to suppress the newline between msg and choices.
confirm(msg, choices) without newline on msg?
user input
Unfortunately you can't; this format is hardcoded (in msg_show_console_dialog()).But you can re-create a function which mostly behaves the same withgetchar():fun! Confirm(msg)    echo a:msg . ' '    let l:answer = nr2char(getchar())    if l:answer ==? 'y'        return 1    elseif l:answer ==? 'n'        return 0    else        echo 'Please enter y or n'        return Confirm(a:msg)    endifendfunThis doesn't implement all the features that confirm() has, but it should show the basic idea.