Code Monkey home page Code Monkey logo

refactor-rails.vim's Introduction

Rails Refactoring Tool for Vim

This is a simple vim plugin which helps in refactoring ruby on rails code.

I have been using vim for quite sometime now and I was quite happy with rails.vim plus a few other plugins for Ruby and Rails based projects, until I tried out Redmine. Although, it hogs a lot of memory and is quite slow, it's features are quite impressive; especially the "refactor" features. And I like vim and wasn't ready to move to Redmine, so I decided to write this plugin which will help in refactoring Rails applications.

Existing Features

vnoremap <leader>riv :RenameInstanceVariable<cr>
vnoremap <leader>rv  :RenameLocalVariable<cr>
noremap  <leader>ic  :IndentFile<cr>
noremap  <leader>mf  :MoveCurrentFile<cr>
noremap  <leader>cf  :CopyCurrentFile<cr>
noremap  <leader>rc  :RenameController<cr>
vnoremap <leader>em  :ExtractMethod<cr> 

Any of you having a doubt here, vnoremap corresponds to mapping in the visual mode and the rest are in normal mode. You can map these to any other keys as per your needs.

Upcoming Features

  • Renaming Models
  • Move code to callbacks

and quite a few others.

Contributing

Feel free to fork this project and contribute any features. Also, leave a not in issues in case you have suggestions for any features, bugs etc.

Licencing

Copyright © 2012 Sandeep Ravichandran. Distributed under the same terms as Vim itself. See :help license.

refactor-rails.vim's People

Contributors

sandeepravi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.