Re: [vim] Vim removes last newline (#488)

2015-11-20 Fir de Conversatie Tony Mechelynck
On Fri, Nov 20, 2015 at 9:14 PM, Laurent Lyaudet wrote: > > Personally, I just see a file as a string and it's weird if the empty string > is displayed the same as the string "\n". Vim shows 1 line when there is > none, 1 line when there is 1, etc. Other editors show 1 line when there is > none

Re: [vim] Vim removes last newline (#488)

2015-11-20 Fir de Conversatie Ben Fritz
On Friday, November 20, 2015 at 1:35:35 PM UTC-6, Tony Mechelynck wrote: > On Fri, Nov 20, 2015 at 4:44 PM, Ben Fritz wrote: > > > > There are complicated workarounds using the 'binary' option for earlier Vim > > versions without the fixeol option. > > > > The workarounds are not complicated, ho

Re: [vim] Vim removes last newline (#488)

2015-11-20 Fir de Conversatie Tony Mechelynck
On Fri, Nov 20, 2015 at 4:44 PM, Ben Fritz wrote: > Somebody mentioned it in passing; and I agree this isn't a bug, so the issue > should remain closed, however: > > The user has a problem. The problem can be fixed with different user settings. > > You need to set noeol and nofixeol (in very rece

Re: [vim] Vim removes last newline (#488)

2015-11-20 Fir de Conversatie Ben Fritz
Somebody mentioned it in passing; and I agree this isn't a bug, so the issue should remain closed, however: The user has a problem. The problem can be fixed with different user settings. You need to set noeol and nofixeol (in very recent versions of Vim) if you want to remove the last linefeed

Re: [vim] Vim removes last newline (#488)

2015-11-19 Fir de Conversatie Charles E Campbell
Laurent Lyaudet wrote: > > Hi, > > I have found the following bug. When I open a file in Vim the last > newline disappears. > Hence it is impossible to see it is there and to remove it (suppress > or backspace doesn't work). > The problem occurs both with Linux '\n' and Windows '\r\n'. > > I join a