Open fisadev opened 12 years ago
I don't know if vim-snippets
has a snippet for ipdb, but I use ultisnips
(my favourite snippets plugin) that it has for pdb
, ipdb
and pudb
.
With that you can do (in insert mode) pdb<TAB>
and you get import pdb; pdb.set_trace()
.
In order to delete all the appearances of that you can do :g/pdb;/d
. It's not as easy as a mapping but imho is easy enough to avoid other mapping, plus you get used to use :g
.
Hope it helps.
Key binding or command to add pdb breakpoint snippet, and key binding or command to remove all breakpoints.