Re: [patch] Respect file's EOL/NOEOL settings

2015-07-13 Fir de Conversatie Pavel Samarkin
Hi all, I don't like the name 'respecteol', from just seeing it I don't know what it means. 'fixeol' probably would do the same, only has the inverted value. 'fixeol' is much better. Thank you, I was not sure about the name since the very beginning. Please find the updated patch in

Re: [patch] Respect file's EOL/NOEOL settings

2015-07-11 Fir de Conversatie Roland Eggner
Hi Bram, Christian, James, Olaf, Pavel On 2015-07-11 Saturday at 00:22 +0200 Christian Brabandt wrote: On Fr, 10 Jul 2015, Bram Moolenaar wrote: The 'addeol' option indicates adding an EOL, also when there already was one, that's confusing. We could call it 'fixeol', which would normally

Re: [patch] Respect file's EOL/NOEOL settings

2015-07-11 Fir de Conversatie Bram Moolenaar
Christian wrote: On Fr, 10 Jul 2015, Bram Moolenaar wrote: The 'addeol' option indicates adding an EOL, also when there already was one, that's confusing. We could call it 'fixeol', which would normally be on. For some file formats for some systems it could be switched off, so that

Re: [patch] Respect file's EOL/NOEOL settings

2015-07-11 Fir de Conversatie Olaf Dabrunz
On 10-Jul-15, Bram Moolenaar wrote: Olaf Dabrunz wrote: I think this is one way to do this. However, I believe the final EOL in a file should be made visible and editable. Consider this: file A file B ,---.

Re: [patch] Respect file's EOL/NOEOL settings

2015-07-10 Fir de Conversatie Bram Moolenaar
Olaf Dabrunz wrote: I think this is one way to do this. However, I believe the final EOL in a file should be made visible and editable. Consider this: file A file B ,---. ,---. |...|

Re: [patch] Respect file's EOL/NOEOL settings

2015-07-09 Fir de Conversatie Olaf Dabrunz
On 08-Jul-15, Pavel Samarkin wrote: Hi, If you use git, then in “git help attributes” the example mentioning *.vcproj files might be useful for you. Possibly the end-of-line normalization offered by git includes the case where just the last line needs normalization. Roland -

Re: [patch] Respect file's EOL/NOEOL settings

2015-07-08 Fir de Conversatie Pavel Samarkin
Hi Roland, Thanks for the suggestion - you're absolutely right, most of the problems can be solved with various scripts - in this particular case, it's possible to do even better - analyze the output of git diff and remove the extra EOL where needed. We can work around each application that

Re: [patch] Respect file's EOL/NOEOL settings

2015-07-08 Fir de Conversatie James McCoy
On Thu, Jul 09, 2015 at 03:09:58AM +0200, Olaf Dabrunz wrote: However, I believe the final EOL in a file should be made visible and editable. Consider this: file A file B ,---. ,---. |...|

Re: [patch] Respect file's EOL/NOEOL settings

2015-07-08 Fir de Conversatie Olaf Dabrunz
On 22-Jun-15, Pavel Samarkin wrote: Hi, Issue: Vim adds EOL to the end of each text file Although my change might seem controversial, it looks like a lot of people (including myself) really want it, especially when using Vim on non-Unix systems (e.g. Windows). You can notice it here:

Re: [patch] Respect file's EOL/NOEOL settings

2015-07-08 Fir de Conversatie Roland Eggner
Hi Pavel On 2015-07-08 Wednesday at 14:16 -0700 Pavel Samarkin wrote: Thanks for the suggestion - you're absolutely right, most of the problems can be solved with various scripts - in this particular case, it's possible to do even better - analyze the output of git diff and remove the

Re: [patch] Respect file's EOL/NOEOL settings

2015-07-08 Fir de Conversatie Olaf Dabrunz
On 08-Jul-15, James McCoy wrote: On Thu, Jul 09, 2015 at 03:09:58AM +0200, Olaf Dabrunz wrote: However, I believe the final EOL in a file should be made visible and editable. Consider this: file A file B ,---.

Re: [patch] Respect file's EOL/NOEOL settings

2015-07-06 Fir de Conversatie Roland Eggner
Hi Ben thank you for your detailed reply and friendly advices. Sorry if my message has been misunderstood: My intent was to add another view, which could eventually help Pavel and Bram, to save work time or to extend the scope of solved problems. On 2015-06-24 Wednesday at 07:49 -0700

Re: [patch] Respect file's EOL/NOEOL settings

2015-07-06 Fir de Conversatie Roland Eggner
Hi Pavel On 2015-06-24 Wednesday at 11:12 -0700 Pavel Samarkin wrote: … I was aiming at something different. Problem (as I see it): Vim is based on a fact that every text file is POSIX-compliant http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 which

Re: [patch] Respect file's EOL/NOEOL settings

2015-07-01 Fir de Conversatie Pavel Samarkin
Hi all, Just updating my patch after the latest merges to the vim's master. -- Best regards, Pavel -- -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

Re: [patch] Respect file's EOL/NOEOL settings

2015-06-24 Fir de Conversatie Pavel Samarkin
Hi all, Roland - thank you for the response. Unfortunately, there is no simple solution to the problems that you described: (1) viminfo files with register contents resulting from alternating fileencondings (2) The patch file resulting from the diff between old and new files after

Re: [patch] Respect file's EOL/NOEOL settings

2015-06-23 Fir de Conversatie Christian Brabandt
Am 2015-06-23 01:21, schrieb Pavel Samarkin: Hi, Issue: Vim adds EOL to the end of each text file Although my change might seem controversial, it looks like a lot of people (including myself) really want it, especially when using Vim on non-Unix systems (e.g. Windows). You can notice it

Re: [patch] Respect file's EOL/NOEOL settings

2015-06-23 Fir de Conversatie Yukihiro Nakadaira
+1 -- Yukihiro Nakadaira - yukihiro.nakada...@gmail.com -- -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are

Re: [patch] Respect file's EOL/NOEOL settings

2015-06-23 Fir de Conversatie Pavel Samarkin
I would definitely appreciate such an option. BTW, it would be good to add this option to $VIMRUNTIME/optwin.vim and having tests would also help. Christian - thank you for the quick response. See attachment for the updated patch. I could not find a good test to modify, so I created a

[patch] Respect file's EOL/NOEOL settings

2015-06-22 Fir de Conversatie Pavel Samarkin
Hi, Issue: Vim adds EOL to the end of each text file Although my change might seem controversial, it looks like a lot of people (including myself) really want it, especially when using Vim on non-Unix systems (e.g. Windows). You can notice it here: