4 ms·
I think many of those who advise against nano have bad experiences from earlier times when it didn't properly support UTF-8 and EOL-diversity, resulting in brok
by jusssi 6y ago
I think many of those who advise against nano have bad experiences from earlier times when it didn't properly support UTF-8 and EOL-diversity, resulting in broken files.
I personally use vim (as my console editor), but the feature set I can actively use without referring to documentation probably doesn't exceed by much what nano could do.
- GrayShade 6y agoInserting hard line breaks when word wrapping is quite annoying too, and that's the default. I've seen a lot of people break config files because they didn't start it with -w.
- Denvercoder9 6y agoThe 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)
- deleted 6y ago[deleted]
- arminiusreturns 6y agoYeah, it took me a while to get past this, and still sometimes hesistate to use nano (emacs here) just because I got bit by this in those days, but now I generally don't have a problem with nano and will often use it over vi on a remote box without emacs or issues with using tramp.
- tpoacher 6y agoIt also doesn't help that most distros tend to package nano 2.9 or older, whereas the latest version is now at 5.5 with considerable improvements.