fisa-vim-config icon indicating copy to clipboard operation
fisa-vim-config copied to clipboard

Pdb integration

Open fisadev opened this issue 13 years ago • 1 comments

Key binding or command to add pdb breakpoint snippet, and key binding or command to remove all breakpoints.

fisadev avatar Jul 11 '12 15:07 fisadev

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.

ivanalejandro0 avatar Nov 08 '13 00:11 ivanalejandro0