Tuesday, February 10, 2015

Re: Locating the cursor

Paul <Paul.Domaskis <at> gmail.com> writes:
> Erik Christiansen <dvalin <at> internode.on.net> writes:
>|On 10.02.15 04:15, Paul wrote:
>|> I don't suppose that some kind vim-script savvy soul could suggest
>|> how one might other windows from flashing, i.e., have only the
>|> window with the focus flash?
>|
>| Well, if you're using gnome, then the simplest pointer location
>| method is to GUI select:
>|
>| System->Preferences->Mouse->Locate_Pointer
>|
>| That states: "Show position of the pointer when the Control key is
>| pressed". It occurs only in the window with focus, and works whether
>| there's vim running or not. The expanding rings, resembling a sonar
>| ping, are highly visible.
>|
>| There is then no need for the vim function.
>|
>| How to do the same in other desktops has not needed investigation
>| here.
>
> I'm using Cygwin's X-windows. So my script was an attempt to use
> native vim capabilities to locate the cursor.

I just re-read your response, and I think I didn't explain properly.
Vim has its own concept of a window, which is basically a text-based
rectilinear splitting of a single window under M$ Windows or any breed
of X-windows. For these big screens that are common today, one can
have a single window split up into quite a few [g]vim windows. My
script flashes the cursor location, which works well when none of the
vim windows have cursorline or cursorcol set. However, it works less
well if the vim windows have cursorline and/or cursorcol set. I was
looking for a clever low-effort way of supressing the flashing for all
but the vim window that contains the focus (not the M$ Windows window
or the X-window window).

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

Post a Comment