That sounds like Soft Wrap. You can enable it for a single file by going to the View -> Soft Wrap menu. To enable it for a language or mode like Plain Text, the easiest thing to do is open up a plain text file, go to the Document -> Plain Text Options menu, navigate to Word Wrap, and click on the "Enable soft wrap" checkbox on the bottom left of the dialog.