Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

vim

I'm afraid asking this silly question but google looks like has no answer for this.

Every time I run VIM in terminal it automatically opens "help.txt" file with sp(split screen) mode.
It says "help.txt" "help.txt" [readonly] 217L, 8055C Does anybody knows how to fix this problem?

like image 386
Sungwon Jeong Avatar asked Jan 05 '11 01:01

Sungwon Jeong


3 Answers

in my case it was because I am using app called caffeine (prevents PC from sleeping) which is simulating pressing F15. After I change it status to inactive, it stopped opening vim help in terminal window.

like image 94
mauek unak Avatar answered Nov 08 '22 01:11

mauek unak


Try running:

vim -u NONE

If this help file doesn't appear when doing that, then there's something in a vimrc file somewhere that is opening the help. Check in:

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

...and anywhere else you might find a vimrc file on your system.

like image 34
Greg Hewgill Avatar answered Nov 08 '22 02:11

Greg Hewgill


if you run $ vim -u NONE

and the issue persists, maybe (like in my case) is some software simulating a key press to prevent the system from sleep.

try to change it for another key, like shift, and not f15.

good luck!

like image 30
Júlio Silva Avatar answered Nov 08 '22 01:11

Júlio Silva