Loading ...
Sorry, an error occurred while loading the content.

Re[4]: How can I update screen from macro?

Expand Messages
  • Eugene Minkovskii
    úÄÒÁ×ÓÔ×ÕÊÔÅ Keith, ... KR IIUC, the idea of increasing cmdheight is to allow you to see the KR confirm() prompt, which might be hidden? Then,
    Message 1 of 9 , Nov 6, 2003
    • 0 Attachment
      Здравствуйте Keith,

      Thursday, November 6, 2003, 8:04:08 PM, you wrote:

      >>-----Original Message-----
      >>From: Eugene Minkovskii [mailto:emin@...]
      >>Sent: Thursday, November 06, 2003 3:46 AM
      >>To: vim@...
      >>Cc: Benji Fisher
      >>Subject: Re[2]: How can I update screen from macro?
      >>
      >>Здравствуйте vim,
      >>
      >>Tuesday, November 4, 2003, 4:42:42 PM, you wrote:
      >>
      >>[ .......................... skiped .......................... ]
      >>BF> I think the problem is not that you are using a mapping or a
      >>Python
      >>BF> script. I think the problem is that vim is waiting for a response from
      >>BF> the confirm() function, and it will not redraw the screen until it gets
      >>BF> one. I suggest the following:
      >>
      >>BF> import vim
      >>BF> vim.command("go 1")
      >>BF> vim.command("set ch+=2")
      >>BF> request = vim.eval("confirm('test','Ok')")
      >>BF> vim.command("set ch-=2")
      >>
      >>BF> :help 'ch'
      >>
      >>So, this don't work too, I'll try it. :((
      >>But if :redraw command don't work, how the 'cmdheight' can redraw the
      >>screen?

      KR> IIUC, the idea of increasing 'cmdheight' is to allow you to see the
      KR> confirm() prompt, which might be hidden? Then, once you confirm, the screen
      KR> will be redrawn.

      I think it's bad idea there are many other, and more directly
      function, :redraw for example.

      So I'LL TRY ALL OF THIS.

      --
      Сенсорно Ваш, Евгений Миньковский
      Yours Sincerely, Eugene Minkovskii

      <emin@...>
    Your message has been successfully submitted and would be delivered to recipients shortly.