vim-endwise icon indicating copy to clipboard operation
vim-endwise copied to clipboard

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

Open BartlomiejSkwira opened this issue 10 years ago • 1 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

BartlomiejSkwira avatar Nov 22 '15 13:11 BartlomiejSkwira

I think so with the right regex fu.

tpope avatar Nov 22 '15 21:11 tpope