4 ms·
No text editor that I know of intelligently word wraps code. Vim doesn't and Emacs doesn't either.
by smabie 6y ago
No text editor that I know of intelligently word wraps code. Vim doesn't and Emacs doesn't either.
- bryanrasmussen 6y agoWhen I hear the word intelligently used in the context of something a computer should do I start to think that perhaps the reason it doesn't do it yet because our expectations are too wide and fickle for it to work as yet. So perhaps this is the test of AI, when it formats my code the way I want it all the time without making a mistake.
- fiddlerwoaroof 6y agoIf you modify breakat and a couple other options (foldindent, to make the autowrapped lines stand out from the others), you can make vim’s autowrapping a lot nicer for word-wrapping code.
- deleted 6y ago[deleted]