Reputation: 9820
I recently switched from Vim to MacVim because it has Ruby support, however, the separate UI is very inconvenient. Is there a way to run MacVim inside the terminal instead of mvim
booting a separate UI?
Upvotes: 4
Views: 3148
Reputation: 4391
If you use homebrew (as you should) then you can use a one liner to get what you want just like I did. I needed ruby support to use the command-t plugin and this is the solution that I used. Here is where I found this solution
brew install https://raw.github.com/adamv/homebrew-alt/master/duplicates/vim.rb
Upvotes: 0
Reputation: 1468
There is a way to launch MacVim from the command line, maybe that will get you part of the way to what you want?
[ Put this into your .profile or .zshrc file ]
function mvim { /Applications/MacVim.app/Contents/MacOS/Vim -g $*; }
[credit] http://saikotroid.blogspot.com/2011/10/launching-macvim-from-command-line.html
Upvotes: 3
Reputation: 1599
One option is to make a symbolic link somewhere in your path:
ln -s `which mvim` vim
This will run MacVim in the terminal.
Upvotes: 7
Reputation: 31040
You want to compile vim with ruby support then. You can compile MacVim with ruby support and use the terminal vim that's contained inside its package at /Applications/MacVim.app/Contents/MacOS/vim
. This article includes instructions on compiling MacVim with Ruby: http://connermcd.wordpress.com/2011/05/04/blogging-with-wordpress-vim-and-markdown/
Upvotes: 3