Skip to content

Instantly share code, notes, and snippets.

@torgeir
Created January 30, 2014 21:16
Show Gist options
  • Save torgeir/8719227 to your computer and use it in GitHub Desktop.
Save torgeir/8719227 to your computer and use it in GitHub Desktop.
Open file from intellij in macvim, move the cursor to the current line.
#!/bin/bash
vim="/usr/local/bin/mvim $*"
osascript<<END
tell app "iTerm"
activate
do shell script "$vim"
end tell
END
@torgeir
Copy link
Author

torgeir commented Jan 30, 2014

Intellij -> Settings -> External Tools -> Add

Name: mvim
Open console: no
Program: /path/til/launch_mvim_intellij.sh
Parameters: --remote-tab-silent +$LineNumber$ "$FilePath$"

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