Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No text editor that I know of intelligently word wraps code. Vim doesn't and Emacs doesn't either.


If 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.


When 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.


I think it’s pretty simple. Word wrap the way a N-character wide linter would


Yes! Someone please make this a reality!!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: