ecomba / vim-ruby-refactoring

Refactoring tool for Ruby in vim!
520 stars 52 forks source link

Replace all local instances in ExtractLocalVariable #32

Closed dalefukami closed 6 years ago

dalefukami commented 13 years ago

Often I end up with duplicate instances of a value that I want to extract into a local variable. This is my attempt at replacing all of them.

Currently it only replaces values within the block to ensure scoping is ok. Also, you must perform the operation on the first instance of the text to be extracted.