I try to copy a paragraph from Word file into a nano editor. When, I open the file nano file.txt
, I remark that the text is set into one long line.
Is there any option to automatically set the paragraph into several lines as in Word file?
I try nano -w file.txt
but it does not work.
This might work for you.
Place the cursor at the beginning of each paragraph and press Ctrl+J.
It is used to justify/fill out a text paragraph. By default, it reflows text to match the editing window width and make your life easier.
See here for more details.