Menu

#6 Avoid [noeol] hint in vi: Add newline after last line.

closed
noeol (1)
5
2023-08-16
2023-03-23
Anonymous
No

When opening a dos2unix converted file in vi, it shows: [noeol]. Therefore, it would be great if you add an option (or it should be by default) to append a newline character after the last line when there was none.

Discussion

  • Erwin Waterlander

    Hi,
    That's a good idea. I will make it optional.
    kind regards,
    Erwin

     
  • Erwin Waterlander

    • status: open --> accepted
     
  • Erwin Waterlander

    I created a beta version which will add a line break to the last line when there isn't one when option -e is used. See https://waterlan.home.xs4all.nl/dos2unix.html

     
  • Erwin Waterlander

    • status: accepted --> closed
     
  • Anonymous

    Anonymous - 2023-07-02

    Thanks for the feature! It would be nice if --info also reported whether the file ends in a newline or not (maybe only report it if --add-eol is also on?).

     
  • Erwin Waterlander

    Nice idea.

     

Anonymous
Anonymous

Add attachments
Cancel