4 ms·
The default has been changed in nano 4, and hard wrapping is now off by default.
by Denvercoder9 6y ago
The default has been changed in nano 4, and hard wrapping is now off by default.
- zepearl 6y agoQuestion: When "hard wrapping" is off and I move the cursor to the right beyond the screen, then the line on which the cursor is gets moved to the left - ONLY that line. Is there a way to have the other lines move as well to the right? Reason: sometimes I want to compare what I'm editing with what is present at the same position in the rows above/below - moving the cusor up/down to have those contents displayed is a bit annoying... . Thx
- tpoacher 6y agoI find that a bit annoying too. My solution is to fire the same file and line using `less` on a parallel window (e.g. in byobu) with the -S enabled (which I have enabled by default) which allows you to scroll to the right instead of wrapping the text. You can then edit the line in nano, and refresh (with Shift+R) as appropriate in less to compare with the lines above.
- zepearl 6y agoaha - Shift+R in "less", didn't know that - thanks!
- jsight 6y agoOh, nice... maybe now I can finally break my habit of randomly inserting "-w" after editor commands.
- tpoacher 6y agoor you could change your .nanorc, or use the shortcut inside the editor (Alt+L)