ruby of support in vim on windows - ruby

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

Related

How to install Ruby with rvm on Windows 10 with Cygwin64 Terminal?

I have been trying to install Ruby on a Windows 10 using the Cygwin64 Terminal so that I can us RVM to manage my Ruby version and gems. This is a first time install so I do not have any Ruby currently. Every time I try to run rvm install 2.1.7 the process errors out on compiling. Below is a screen shot of the terminal window:
enter image description here
Edit: Nowadays (2021) the best way to go is not to use Cygwin but rather WSL2. Then you have plenty of tools since you basically have a Linux install. rvm, rbenv or asdf should be able to do the job.
Old answer:
Best way is to use RailsInstaller. It handles most dependencies for you. I wouldn't mess around with RVM in Windows, AFAICT you will have issues along the road trying to use it on a non-UNIX environment.

Want to install Jruby but intimidated by RVM

Want to install Jruby and I am pretty sure that I want to manage it with RVM. My problem is that I am a little intimidated by RVM with its command line and all the dependencies (bash, git, etc.) I am on Windows 7, ruby 1.9.3.
Can someone please help a newbie out and explain this in English.
Thanks
RVM is not supported on windows.
"If you would like to manage multiple versions of ruby on windows please use pik which is an excellent tool by Gordon Thiesfeld. You can find it on GitHub."
Options to manage ruby version over windows:
pik is a tool to manage multiple versions of ruby on Windows. It can be used from the Windows command line (cmd.exe), Windows PowerShell, or Git Bash. Github-pik
You can also use Cygwin and then install the various packages required.
Checkout
How to install rvm on windows using cygwin
I would recommend using linux/mac OS when working with open source.
If you want to install ruby on Windows I suggest you to use PIK. It's sponsored by RubyInstaller.
And, about install Jruby on Windows ... all that you have to do is go to JRuby website and download the .exe file.
JRuby Website Link here: http://jruby.org/download

What's a proper way to install Ruby <1.9.3 on OS X Lion with Xcode 4.3?

Until recently I used to have Xcode 4.2 with the osx-gcc-installer installed on top of it, which worked quite well for older versions of Ruby.
The thing is, that now that I installed Xcode 4.3 with the command line tools (for homebrew), I found that I don't have gcc-4.2 on my system.
From what I was able to find, the usual way to install pre 1.9.3 is to either get an older version of Xcode, or using the osx-gcc-installer. I also found a warning saying that if I install osx-gcc-installer over Xcode 4.3, it will cause problems with node.js.
As I'm currently doing both iOS and node.js development alongside Ruby, I can't really do any of these things. Which means I can only work with 1.9.3, which is the only Ruby version that can be compiled with LLVM.
Is there a clean way to install any older version of Ruby without sacrificing Xcode 4.3? The solution that comes to my mind is having gcc-4.2 in some kind of non-system-wide sandbox and specify it's path when installing Ruby, but I'm not really sure how to do this properly.
Update:
See this link for the process required to get GCC-4.2 onto a machine with Xcode 4.3 without overwriting other components.
Xcode 4.3, Homebrew, and Ruby
It will obviate the need for the instructions below:
RVM should work if you set the default compiler for RVM to gcc. Place this in your .bashrc or .zshrc.
export CC=/usr/bin/gcc-4.2
RVM should then use GCC to compile.
If you don't want to have CC set permanently then you could try installing with:
CC=/usr/bin/gcc-4.2 rvm install 1.8.7

Where can I find instructions on how to install Vala on my Mac?

I'm looking into learn the Vala programming language where can I find somewhere to show me how to install it on my Mac?
Another way to install it is using Homebrew.
brew install vala
The advantage of Homebrew over Macports is that it tries to rely as much on what is provided by the native OS as possible without installing any additional duplicate libraries.
A good way to install it is to use MacPorts. MacPorts gives you access to Vala and many of the libraries often used with Vala.
I'd start with MonoDevelop and it's installation instructions. There's a Vala plug-in for it.

Install Ruby support for VIM on Mac OS X

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...

Resources