Search code examples
rubyvimtextmate

With Vim Rails, can you create a new migration file and open it in one go?


Using vim with the Rails plugin, can you create a migration file and then open the file in one go?

Was this possible with textmate also?


Solution

  • You could use rails.vim and then do something like:

    :Rgenerate migraton add_foo_to_bar
    

    The plugin will open the migration generated file, that's exactly what you want. I can't speak for textmate.