可能重复:
Is there any way to get vim to auto wrap python strings at 79 chars?
目前,我的vim auto包装代码行在第80列。这是一个很好的功能,但是当涉及到字符串时会导致语法错误 - 将字符串分成多行。
示例:
self.assertEqual(resp.context['poll'].question, 'Are you learning about
testing about testing in Django?')
有没有办法在包装字符串时将vim配置为巧妙地执行以下操作?
self.assertEqual(resp.context['poll'].question, 'Are you learning about '
'testing about testing in Django?')