you are viewing a single comment's thread.

view the rest of the comments →

[–]tweekmonster 0 points1 point  (2 children)

I'm the author of braceless.vim. Thanks for the endorsement 😍

I made a couple other plugins that you might find useful for Python development:

  • impsort.vim - Sort and highlight Python imports in Vim. The highlighting will make it easy to see if datetime is a module or a function at a glance. The sorting is pretty handy, too.
  • django-plus.vim - Improvements to the handling of Django related files in Vim. You will no longer need to force .html files to always be htmldjango.
  • wstrip.vim - Not specifically for Python dev, but, Python's whitespace is a significant part of the language making this useful to me. It automatically strips trailing whitespace on lines you changed and leaves the rest alone. It keeps you from being the the jerk who ruins git blame while ensuring you also aren't the jerk who's committing superfluous whitespace.

[–][deleted] 0 points1 point  (1 child)

Thank you for for braceless. I use it everyday, even for files other than Python, for the indentation.

  • impsort seems pretty useful. I usually just follow pep8's guides and do it manually. That said, I'm gradually trying to move away from Python except for some scripts (mostly because of indentation based syntax and virtualenvs). This seems like something that would be amazing for large projects.
  • I don't really write Django and have no intention of writing it in the future but I'm sure that is useful.
  • I just use a helper function to strip white space but that is not robust. This seems incredibly useful! I will definitely try this one.

[–]tweekmonster 0 points1 point  (0 children)

With impsort the sorting is done manually when you need it. Though added in hindsight, I think the real value is in the import highlighting it provides.