[vim/vim] Setting 'nofixendofline' and 'endoffile' and writing DOS format file add CTRL-Z characters to the beginning of the file (Issue #11469)

52 views
Skip to first unread message

zeertzjq

unread,
Oct 30, 2022, 1:46:06 AM10/30/22
to vim/vim, Subscribed

Steps to reproduce

  1. Run vim --clean
  2. Source the following file:
call writefile(['aaa', 'bbb'], 'Xendoffile')
edit Xendoffile
set fileformat=dos nofixendofline endoffile
write
edit
  1. Two CTRL-Z characters are added to the beginning of the file

Expected behaviour

What 'endoffile' is documented to do

Version of Vim

9.0.820

Environment

Operating system: Arch Linux
Terminal: kitty
Value of $TERM: xterm-kitty
Shell: fish

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11469@github.com>

K.Takata

unread,
Nov 1, 2022, 5:26:18 AM11/1/22
to vim/vim, Subscribed

Should be fixed by #11486.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11469/1298257915@github.com>

K.Takata

unread,
Nov 1, 2022, 7:07:09 PM11/1/22
to vim/vim, Subscribed

Fixed by 3af9821.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11469/1299337305@github.com>

K.Takata

unread,
Nov 1, 2022, 7:07:10 PM11/1/22
to vim/vim, Subscribed

Closed #11469 as completed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/11469/issue_event/7717877617@github.com>

Reply all
Reply to author
Forward
0 new messages