0
Vim plugins for python
development
@mattboehm
github.com/mattboehm
http://about.me/matthewboehm
I run the local vim meetup. And have written a
few plugins.
I...
Plugins for debugging
The actual writing of code is only one small part
of the development process.
There are already a lo...
Problem: stack traces suck
You’re happily browsing your logs, when all of a
sudden, you see a stack trace! There are a few...
Solution: Unstack!
Highlight a stack trace in vim and hit “,s”
This opens a new tab with one vsplit per level
of the stack...
Before...
After!
Problem: viewing logs
Server logs get bogged down with a million
debug statements
They become hard to navigate and it’s ha...
Solution: smartlog!
● Python and vim components
● Log function calls with a decorator
● Syntax highlighting and code foldi...
What I want:
● Profiler that logs function enter/exit and
optionally every line executed, maybe types?
● Logs should be in...
Links
vim-unstack
py-smartlog
vim-smartlog
NoVA Vim Meetup
Vim Plugins for Python Development
Upcoming SlideShare
Loading in...5
×

Vim Plugins for Python Development

362

Published on

I've written a few vim plugins to help me debug python and view server logs.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
362
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Vim Plugins for Python Development"

  1. 1. Vim plugins for python development
  2. 2. @mattboehm github.com/mattboehm http://about.me/matthewboehm I run the local vim meetup. And have written a few plugins. I’m a python/js developer for a local gov’t contractor (surprise, surprise) About Me
  3. 3. Plugins for debugging The actual writing of code is only one small part of the development process. There are already a lot of great blog posts on plugins for editing, so I thought I’d focus on a different topic: debugging.
  4. 4. Problem: stack traces suck You’re happily browsing your logs, when all of a sudden, you see a stack trace! There are a few problems: ● There’s no context around the stack trace ● When I see a problem, I want to go in and fix it
  5. 5. Solution: Unstack! Highlight a stack trace in vim and hit “,s” This opens a new tab with one vsplit per level of the stack trace, with the lines highlighted in red. From here you can see the full context and edit/save the files if you wish.
  6. 6. Before...
  7. 7. After!
  8. 8. Problem: viewing logs Server logs get bogged down with a million debug statements They become hard to navigate and it’s hard to know the context of a log message
  9. 9. Solution: smartlog! ● Python and vim components ● Log function calls with a decorator ● Syntax highlighting and code folding ● More nifty vim functions
  10. 10. What I want: ● Profiler that logs function enter/exit and optionally every line executed, maybe types? ● Logs should be in an open machine- readable format ● Editor plugins to replay execution Interested? Talk to me and let’s build it!
  11. 11. Links vim-unstack py-smartlog vim-smartlog NoVA Vim Meetup
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×