Friday, February 13, 2015

Re: Locating the cursor

On Thursday, February 12, 2015 at 3:07:44 PM UTC-6, Paul wrote:
>
> Actually, if a kind soul can post a coding pattern to cycle through
> the windows of the active tab, maybe one day I can bastardize it to
> temporarily turn off cursorline & cursorcolumn in all other windows
> while the window with the focus is flashed.

let g:curwin = winnr()
windo let w:oldcurline=&cursorline
windo setl nocursorline
exec g:curwin.'wincmd w'
call YourFlashyFunction()
windo let &cursorline=w:oldcurline
exec g:curwin.'wincmd w'

--
--
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: