fisadev / fisa-vim-config

my vim configuration (lot of python, autocompletition, fuzzy finder, debugger, ...)
http://vim.fisadev.com
1.47k stars 495 forks source link

Pdb integration #6

Open fisadev opened 12 years ago

fisadev commented 12 years ago

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

ivanalejandro0 commented 11 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.