Skip to content

Instantly share code, notes, and snippets.

@technosophos
Created June 7, 2014 04:28
Show Gist options
  • Select an option

  • Save technosophos/1b7c68ea8b9330c7e45f to your computer and use it in GitHub Desktop.

Select an option

Save technosophos/1b7c68ea8b9330c7e45f to your computer and use it in GitHub Desktop.
Apple Script to Raise and Focus the First MacVIM Window
tell application "MacVim"
activate
set visible of first window to true
end tell
@technosophos
Copy link
Author

The above script...

  1. Tells MacVim to...
  2. Become active
  3. And then raise the first window if no windows are already raised

This script can then be used to map a keybinding to MacVIM so that you can assign a keyboard shortcut that raises or reveals your first active VIM window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment