Vim tab completion for RubyMotion

by Amitava,

Here is a quick rundown on setting up tab completion in vim for RubyMotion.

Configure ctags support

Using ctags with vim can save us from typing really long class or method name by hand. RubyMotion already includes a rake task for generating ctags for a project, but first we need to ensure the proper ctags executable is installed in the system. ctags can be installed using a package manager. OSX users can inatall it using homebrew.

~> brew install ctags

Generate RubyMotion ctags file

After ctags is installed run the following rake task from inside the root of the RubyMotion project directory.

~> rake ctags

This will generate the ctags file that we will use in vim to setup tab completion.

Setup vim for tab completion

supertab is a vim plugin which allows you to use Tab for all your insert completion needs. Once installed there is no need to type those long class or method names anymore. Just type two or three characters and press Tab and it will use the ctags file to display a list of matching names.

vim tabcompletion for RubyMotion

More articles

Turn Data into Insights with Apache Superset

Discover how to get started with Apache Superset, a powerful open-source platform for modern data visualization and exploration. From setting up our environment to building interactive dashboards and leveraging advanced analytics, this guide walks us through everything we need to unlock deeper insights from our data

Read more

Data Made Simple with Metabase

Learn how to set up and use Metabase, the open-source business intelligence platform that transforms your data into actionable insights. This comprehensive guide covers installation, dashboard creation, and advanced analytics features...

Read more

Ready to Build Something Amazing?

Codemancers can bring your vision to life and help you achieve your goals