Mac OS X 10.6 (Snow Leopard) has VIM pre-installed (version 7.2), which is great.
It also has Ruby pre-installed (version 1.8.7) which is great too.
However, I want Ruby autocompletion in VIM. Looking up the VIM version (vim --version) shows -ruby (i.e. ruby support isn't enabled).
How to enable ruby for my VIM installation?
While it's possible to build and install your own Vim to replace the pre-installed version, I don't recommend it. It's far easier to just use MacVim instead:
http://code.google.com/p/macvim/
MacVim is a very Mac-friendly version of Vim, and it's got Ruby support already built in. It can be used as both a GUI and Terminal application. (Check out :help macvim-start from within MacVim for details.)
+1 for MacVim - I also use it and love it.
But if you want a fresh vim compiled with ruby support, you can build one from scratch on OSX by following this article:
http://brilliantcorners.org/2011/02/building-vim-on-osx-snow-leopard/
Only took me about 5 minutes to do...
Related
I just started using OSX, I am somewhat more familiar with Ubuntu and Fedora. I am trying to install Geany and I was successful in doing so but it isn't recognizing the command. I used homebrew to install it and it is showing that it is available in my applications as Geany.app but I can't seem to find the icon.
There is a native Geany build for MacOS X available to download from the webpage.
To start Geany on MacOS on default the easiest way is to use Cmd + Space and type Geany. For more questions about MacOS I however recommend to check https://apple.stackexchange.com/
I want to install the latest version of emacs, but if I do this will it be in conflict with the version that comes pre-packaged with os x? Do I need to delete the native emacs? Also, it seems emacsforosx.com is a popular option, but I lot of people swear by homebrew... why would I go with one option over the other?
There is no reason to remove the system-supplied Emacs; any well-behaved, properly packaged third-party version will install fine alongside, not over, the system binaries and libraries.
Installing a current version of emacs is normal practice because the OSX provided version is outdated. You have a number of options, but I've found using the 'homebrew' method the easiest.
Due to changes in OSX 10.11, you need to take some additional steps when installing homebrew. If you already have homebrew installed, you will probably need to 'fix' the permissions on /usr/local. If you don't have homebrew installed, then there are some additional steps you will need to take to create the /usr/local path. This is documented on the hombrew site at El Capitan and Homebrew
I've compiled vim73 manually on Mac OS X Lion using xcode and ruby1.9.3 on rvm. I've compiled the C extension for command-t. When I press leader+t the command-t is opening, it is showing some files, but when I type some chars it doesn't search.
What is the problem?
This isn't a direct answer but FWIW I had (prematurely I'm sure) given up on Command-T + Lion until I got into using the Janus MacVim distro which does sucessfully pull it down, build and integrate it.
I have the same behaviour on my Mac. It works as soon as I :cd into a different directory. For some reason it does not work under ~/
I am new to vim and would like to configure command-t plugin to work in vim 7.3. It says it doesn't have ruby support. Is there any way to configure vim to have ruby support on windows 7?
I think you need to compile vim with --enable-rubyinterp flag.
Check if vim has support for ruby using :version in vi.
If that shows -ruby (no ruby support) then you will have to compile from vim source or fetch an installer which was compiled that way.
I guess that your problem is that you do not have ruby installed and that plug-in need it. Try installing ruby:
http://rubyinstaller.org/
You can't configure vim to have ruby support (as in checking a box or changing an option). You have to download a distribution of vim with ruby support or download the sources and compile it yourself. Type
vim --version
If it says "-ruby" then you need to install a different vim version that has it supported (+ruby).
You can follow the step-by-step here: My own post or Official doc installation
I am using MacBook Pro Mac OS 10.5 with related version of XCode. I am new to this development environment. I am learning macports, and I read information about macports from http://www.macports.org/. But I am still confused what macports is after reading information from this site.
I am previous working on Windows and Linux, could anyone let me know what macports is (in easy words) and what is the similar item on Windows/Linux?
thanks in avdance,
George
macports is a way of getting executables and other compiled code installed on your computer without having to work out the details of compiling/linking each apllication.
It is equivalent to a package manager under Linux and other Unicies. There is no direct equivalent under Windows.
It is just a convenient way to install a lot of *nix soft on your mac book. They are installed separately (not overwriting) from binaries/daemons/libs already installed on your mac (by default in folder /opl/local). Also they are much fresher than those installed on your mac.
For example 10.6 ships with bash 3.2, but after running sudo port install bash, you will get version 4.x (to make it your default shell add /opt/local/bin/bash to file /private/etc/shells, run chsh -s /opt/local/bin/bash and reopen terminal).
Note other os x package managers: fink and homebrew (superuser question)