Sunday, May 24, 2015

Does trigger any event?

Hi,
am I right that <C-w><C-o> does not trigger any event? I have a custom
status line, which does not get updated when I close all other windows.
For now, I have this workaround:

nnoremap <C-w>o <C-w>o:call RefreshStatusLines()<CR>
nnoremap <C-w><C-w> <C-w>o:call RefreshStatusLines()<CR>

I was wondering whether there is a better way to detect when the user
makes the active window the only visible one.

Nicola


--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: