On the Centos system at work and Debian at home, when the # character is used as a comment and vi is started it whines with:
Code:
Error detected while processing /home/bkelly/.vimrc:
line 3:
E488: Trailing characters: # set noncompatible
Press ENTER or type command to continue
What must be done to get vim to recognize a comment line and to ignore it.
Edit, just in case that .vimrc contains:
Code:
set term=ansi
# set noncompatible
The first line is blank, the third line is the one that vi is, apparently, complaining about. I just noted that the option for CODE detects and omits leading blank lines and puts one or two blank lines at the end of the section.