Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Whats the keyboard shortcut to switch between running instances of Vim?

share|improve this question

migrated from stackoverflow.com Dec 5 '12 at 19:07

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer

up vote 3 down vote accepted

Giving a second monitor to someone who doesn't know how to navigate between windows with the keyboard is mean.

This list of keyboard shortcuts will probably help you. Try Cmd+`, for example. That's a backtick, by the way.

I use Exposé for that kind of thing.

share|improve this answer
    
In my defense I can switch between applications on the different monitors, just not two instances of Vim. The keyboard shortcuts are good to know, but not solving my problem. Expose, which I think now is Mission Control, works okay but I'd rather just have a simple shortcut to get to the other monitor. Not sure why this is so difficult to pull off... –  steve_gallagher Dec 5 '12 at 18:50
    
What is difficult? I gave you exactly what you asked: you hit Cmd+` in one MacVim window and the next one takes the focus. Easy. If you want a general shortcut to move your cursor to the second screen that's an entirely different question because, at a high level (the user level), Mac OS X doesn't really consider your second screen as another entity. It does, at lower level, though. I know for sure that you could reach your underlying goal with a bit of AppleScript. –  romainl Dec 5 '12 at 20:30
    
Okay, I was being mildly retarded, not recognizing the character as 'backtick' but seeing it as an apostrophe. Which is my bad. That solution works. I'm going to remap it, though. For curiosity sake, if you use a multi-monitor set-up, do you use two Vim windows? –  steve_gallagher Dec 5 '12 at 20:34
1  
At work I am the very happy user of two perfectly calibrated 22" EIZO monitors but I rarely if ever have code on the two screens. Usually, I use Vim how it is supposed to be used, juggling with buffers and splits in a single (often maximised) GUI window, while the other monitor is dedicated to documentation and/or photoshop comps and/or a browser window. –  romainl Dec 5 '12 at 21:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.