Vim help.txt automatically open every time I open vi

Hi Friends,

Every I try to open a vi window, vim help.txt automatically opens evertime.

After doing ZZ or :q! also the same page opens automatically.

How to stop this? Is it machine specific ? Other users who are opening the same servers and files are not facing this issue.

Thanks
Bhaskar

Check your .vimrc file if there is a command to open help.txt

It is fairly common practice for vim to start in help mode if you invoke it with no file operands. But, if you give it the name of one or more files to edit when you start it (which most of do well over 99% of the time we invoke vi or vim ), you just see the contents of the 1st file named and will be ready to edit it without seeing the help screen.

Incorrect. The default behavior of vim, when no file is provided, is to display a short message showing the version, the author and an awareness reference to the poor children in Uganda; charity that the author would like everyone using the vim software to support.

Hello, sudiptabhaskar,
The most probable cause of the problem is your local ~/.vimrc , as Yoda has mentioned, already. However, there are other candidates as well:

/usr/share/vim/vimrc
/etc/vimrc

Please, invoke vim as follow:

vim -U NONE

This will start vim ignoring any custom configuration made. If you get the short message, then, you can be certain that the issue is in one of these files.