Functions to refactor Ruby programs with Vim