tpope / vim-endwise

endwise.vim: Wisely add

Home Page:https://www.vim.org/scripts/script.php?script_id=2386

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Add class/module/method names after 'end' keyword

BartlomiejSkwira opened this issue · comments

Would it be possible to have commented-out class/module/method names automatically added behind end keywords? Example:

module Module
  class Superclass
    class Subclass
      def foo
      end # def foo
    end # class Subclass

    class SubclassB
    end # class SubclassB
  end # class Superclass
end # module Module

I think so with the right regex fu.