by syllogism · 11y ago · 0 comments
I cannot get used to typing print()
Every time I go to debug a line, I get a syntax error, and have to go back and change it. And I type a lot of debug lines!
I need to find a vim extension to handle this, but so far it just makes me frustrated whenever I try to type Python 3.
For a vim extension - I use snipMate http://www.vim.org/scripts/script.php?script_id=2540 It's a bit on the dead side but works great as-is. ifmain followed by the expander key (shift-tab in my case) expands to the if __name__ ... idiom. You could add your own "p" snippet that expanded to print() in python code.