I often insert binding.pry to my ruby files when I debug them. As I use Vim I\'d love to automate it to avoid retyping it every time. How could I do it?
binding.pry
Th
Easiest is an abbreviation that is triggered from insert mode:
:ia debug binding.pry
Now, when you type debug, the text binding.pry is inserted on a new line.
debug
Documentation: :help abbreviations
:help abbreviations