Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Vim plugin autocompletes Ruby code?

Some time ago, when I was using Janus, I could autocomplete Ruby code. I don't mean "autocomplete" in the sense of the SuperTab plugin, I mean, for example, when you type

collection.ea

And then hit the Tab key, you get

collection.each do ||

end

And your cursor is positioned between the ||. You could also do the similar when defining a method.

Does anyone know how that plugin is called?. The problem is that I'm not using Janus anymore, so I don't have that plugin anymore. I looked at every plugin in the Janus documentation, but I couldn't find it.

like image 247
janko-m Avatar asked May 10 '12 11:05

janko-m


People also ask

Is Vim good for Ruby?

Many Rails programmers prefer Vim to full-blown bulky IDEs like RubyMine. The are several reasons for that but most important (to me at least) is the ability to customize Vim, make it very powerful and at the same time keep it pretty lightweight.

What are plugins in Vim?

vim is a plugin that wraps the command-line fuzzy finder program fzf, allowing you to use it directly within Vim. Fzf is a fast and portable fuzzy finder application written in Go. It is a requirement for the Vim plugin, so make sure you install it first.


1 Answers

Could it be Snipmate?

You can find Ruby snippets for Snipmate here.

Just do:

git clone https://github.com/scrooloose/snipmate-snippets.git
rake deploy_local
like image 54
Amokrane Chentir Avatar answered Sep 28 '22 19:09

Amokrane Chentir