diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-07-17 14:18:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-07-17 14:18:08 +0200 |
commit | 34d72d4b6c1a2b04a214d8a49b7d22c97bc7a8bc (patch) | |
tree | 82675f2f5f49bcb04e8271de9fefee41b3c2ec19 /runtime/optwin.vim | |
parent | 2cf6938706ebcd20e4b4a6723f5f70568b26b1c6 (diff) | |
download | vim-git-34d72d4b6c1a2b04a214d8a49b7d22c97bc7a8bc.tar.gz |
patch 7.4.785v7.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)
Diffstat (limited to 'runtime/optwin.vim')
-rw-r--r-- | runtime/optwin.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/optwin.vim b/runtime/optwin.vim index 55353ce66..921ae3630 100644 --- a/runtime/optwin.vim +++ b/runtime/optwin.vim @@ -954,6 +954,9 @@ call <SID>BinOptionL("bin") call append("$", "endofline\tlast line in the file has an end-of-line") call append("$", "\t(local to buffer)") call <SID>BinOptionL("eol") +call append("$", "fixeol\tfixes missing end-of-line at end of text file") +call append("$", "\t(local to buffer)") +call <SID>BinOptionL("fixeol") if has("multi_byte") call append("$", "bomb\tprepend a Byte Order Mark to the file") call append("$", "\t(local to buffer)") |