Hello,
On Windows (7 64 bit), anyone have a visual basic script or some other
mechanism to achieve the following:
1) Ctrl-Z in gvim shifts focus to the input prompt
on a pre-existing cmd window.
2) Then, in that cmd window, issuing some command, say,
"done", results in focus being brought back to
gvim with the cursor at the place where it was when
Ctrl-Z was typed.
So it's "just" two scripts, one to switch focus from gvim to cmd-window,
and the other to shift focus in the reverse direction. With the
appropriate script being triggered by "Ctrl-Z" in gvim or by "done" in
cmd-window.
If such a tool does not already exist:
Here's what I would do: In the past, I have successfully written and
used a perl script that examined the system tray for one particular
application and killed it if the application was found. I suspect that
code could be extended to examine all windows on the desktop, and to
turn focus on for any particular window. I might need to run the script
once from gvim and once from the cmd-window so that the script could
record the "Window-ID" of the two applications. Then "Ctrl-Z" would be
mapped to call that script to switch to the cmd-window, and "done" would
be created to call that script to switch to the gvim window.
Any thoughts on the above approach?
(The preceding is different from the sequence of operations for OutlookVim.)
Thanks,
--Suresh
--
--
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/groups/opt_out.
Sunday, November 3, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment