Every time I start VIM, "help.txt" opens automatically

I am afraid to ask this stupid question, but google looks like there is no answer for this.

Each time I run VIM in the terminal, it automatically opens the file "help.txt" with sp (split screen) mode.
He says "help.txt" "help.txt" [read-only] 217L, 8055C Does anyone know how to solve this problem?

+6
source share
4 answers

Try to run:

vim -u NONE 

If this help file does not appear when doing this, then there is something in the vimrc file that opens the help. Check in:

 ~/.vimrc /usr/share/vim/vimrc /etc/vimrc 

... and somewhere else you can find the vimrc file on your system.

+4
source

if you run $ vim -u NONE

and the problem persists, maybe (for example, in my case) there is some software that simulates a keystroke so that the system does not sleep.

try changing it for a different key, like shift, not f15.

Good luck

+3
source

in my case, it was because I use an application called caffeine (prevents sleep from the PC), which simulates pressing the F15 key. After I changed its status to inactive, he stopped opening vim help in the terminal window.

0
source

I had a similar problem, I wrote a script that starts scrolling lock for a regular period of time. This was the cause of the problem. I stopped the script and help.txt never came.

0
source

Source: https://habr.com/ru/post/1334293/


All Articles