0

Is there any way in Vim reliably refactor (i.e. rename, move up or move down directory structure) Ruby’s require_relative statements? I’ve searched thoroughly and couldn’t find any plugin or CLI tool to take care of it, but I don’t yet trust my Vimscript skills enough to write it myself. Ideally it would handle git mv and wildcards.

  • Welcome to Vi and Vim! I’m inclined to think this is the sort of thing that would need a dedicate ruby tool (since the problem is hard and requires a deep ruby-awareness). Integrating that tool with vim would be easy, but I would not build in vimscript. At any rate, could you edit to give some examples of pre and post text, with the corresponding actions that generate them? This would help our vim enthusiasts greatly – D. Ben Knoble Oct 8 at 18:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.