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?
Th
A great quandary I found myself in. To solve this I placed the following mappings in my .vimrc:
imap binding.pry
nnoremap bp O<% binding.pry %>
The first allows me to use to insert a binding.pry when already in insert mode.
The second lets me use my leader+bp to place a binding.pry above the current line.