From 34d72d4b6c1a2b04a214d8a49b7d22c97bc7a8bc Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 17 Jul 2015 14:18:08 +0200 Subject: patch 7.4.785 Problem: On some systems automatically adding the missing EOL causes problems. Setting 'binary' has too many side effects. Solution: Add the 'fixeol' option, default on. (Pavel Samarkin) --- runtime/optwin.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/optwin.vim') diff --git a/runtime/optwin.vim b/runtime/optwin.vim index 55353ce669..921ae36300 100644 --- a/runtime/optwin.vim +++ b/runtime/optwin.vim @@ -954,6 +954,9 @@ call BinOptionL("bin") call append("$", "endofline\tlast line in the file has an end-of-line") call append("$", "\t(local to buffer)") call BinOptionL("eol") +call append("$", "fixeol\tfixes missing end-of-line at end of text file") +call append("$", "\t(local to buffer)") +call BinOptionL("fixeol") if has("multi_byte") call append("$", "bomb\tprepend a Byte Order Mark to the file") call append("$", "\t(local to buffer)") -- cgit v1.2.3