Using shorter textwidth in comments and docstrings
So, I’ve never done any Vim scripting before, but based on this question about doing something similar in C and this tip for checking if you’re currently in a comment, I’ve hacked together a solution. By default, this uses the PEP8-suggested widths of 79 characters for normal lines and 72 characters for comments, but you … Read more