On Sun, Nov 3, 2013 at 4:26 PM, Suresh Govindachar
<sgovindachar@yahoo.com> wrote:
>
> 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.
As Ben Fritz implies, this is a use case for your window manager.
Windows 7 has a feature that you might like: when you press "windows
key" + {number} it will focus the application positioned in the task
bar at {number}. So, I have Vim pinned to my task bar at the first
position, and the terminal as #2. Switching to the terminal from *any*
application is a matter of pressing [windows key] + 2. Switching to
Vim is [windows key] + 1.
If you also press the "shift" key, it will open a new instance of the
associated application.
Not directly related to your question, but if you have a (bad?) habit
of using "throw-away" terminals like me, I created a plugin that works
on Windows, Mac, Linux: https://github.com/justinmk/vim-gtfo
---
Justin M. Keyes
--
--
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