Search code examples
vimaptanaaptana3

Possible to use Aptana standalone with vim with Mac?


I've just started doing Ruby on Rails development.

I'm trying to get the best of both worlds. I love getting around a file with just the keyboard like I can with vim. But opening up and find the files from the command line is a drag.

I'd love to be able to click a file open in Aptana and then be able to navigate around it with vim commands to do my actual editing.

I haven't been able to find any definitive solution for getting this working on a mac. I tried installing software for it with Aptana under Help >> Install new software as linked to from here: http://satyavvd.blogspot.com/2010/05/aptana-studio-with-vi-emulation.html but the link is 2 years old I couldn't figure out how to get it running.

Has anybody out there gotten this to work?

I'm using Aptana 3.2.2


Solution

  • You know you can right click on a file and choose which editor to use, do you? Or assign any editor -- internal or external -- to any filetype in Aptana's preferences?

    Aptana is based on Eclipse so all the Vi(m) plugins that work in one are probably going to work in the other.

    Take a look at these five plugins:

    • Vrapper

      A "regular" Eclipse editor with many Vi(m) key-bindings.

    • viPlugin

      Idem, payware.

    • Viable

      Idem, payware.

    • vimplugin

      Run Vim inside of Eclipse/Aptana. I don't think that it works on a Mac.

    • eclim

      Eclipse and Vim talking through a server.

    But if you only want a more convenient way to open files in Vim I can't recommand CtrlP enough. You could also try the similar but different FuzzyFinder, LustyExplorer or Command-T) or you could get more familiar with Vim's :e **/foo<Tab>.