Opening an error file using this command,

    vim -N -u NONE -i NONE -q errorfile

opens the file containing the first error, and displays (in this
example) the following line on the last line of the display:

    (19023 of 32035): warning: comparison between signed and unsigned integer 
expressions [-Wsign-compare]

So far, so good.  However, adding a -c option to the command line,
like this,

    vim -N -u NONE -i NONE -c 'set sw=4' -q errorfile

opens the file, but displays the error message twice, causing the
display to contain only these three lines at the bottom and
requiring me to hit Enter before displaying the file.

    (19023 of 32035): warning: comparison between signed and unsigned integer 
expressions [-Wsign-compare]
    (19023 of 32035): warning: comparison between signed and unsigned integer 
expressions [-Wsign-compare]
    Press ENTER or type command to continue

It doesn't seem to matter what the command following -c is, and
adding "silent" doesn't help.

Can this be fixed, or can someone suggest a workaround?  I am
currently adding this -c option to the command, which causes vim to
display the first file immediately, but at the expense of losing
a line of the file display.

    -c 'set cmdheight=2'

It would be nice if I didn't have to lose that line.

I discovered this using 8.0.84, verified that the behavior is the
same in the latest 8.0.133, and also see the same behavior in
7.4.169.  I am using vim in an xterm on a system running Red Hat
Enterprise Linux Server release 7.2.

Regards,
Gary

-- 
-- 
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 subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui