Vim help.txt automatically open every time I open vi


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Vim help.txt automatically open every time I open vi
# 1  
Old 06-24-2016
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
Vim help.txt automatically open every time I open vi-issuepng
# 2  
Old 06-24-2016
Check your .vimrc file if there is a command to open help.txt
# 3  
Old 06-24-2016
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.
# 4  
Old 06-25-2016
Quote:
Originally Posted by Don Cragun
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:
Code:
/usr/share/vim/vimrc
/etc/vimrc

Please, invoke vim as follow:
Code:
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Vim, vi and nano editor shows help.txt automatically

Hi, Whenever i try to open a file in any editor like vi, vim and nano i get this help.txt showing up in split screen without any key being pressed. This continues to pop up even when i close the help.txt. This behavior happens only when i am connected via putty. Is there a fix to this issue? ... (1 Reply)
Discussion started by: sunil0391
1 Replies

2. UNIX for Beginners Questions & Answers

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... (1 Reply)
Discussion started by: sudiptabhaskar
1 Replies

3. UNIX for Dummies Questions & Answers

Error when using vim to open files

Hi all, 1st post here. I'm on Solaris and currently, I get the following error if I try to use vim to edit anything: Error detected while processing function <SNR>6_initialize: line 2: E697: Missing end of List ']': E116: Invalid arguments for function <SNR>6_defineOption line 3: E10:... (6 Replies)
Discussion started by: fred2028
6 Replies

4. Shell Programming and Scripting

Open a Webpage and automatically fill entries

Hi All, Is it possible that Perl script open a webpage and when that webpage opens there is some text box in which data needs to be filled.The Perl script read the data from file and fill in that webpage. And after that click the submit button. (4 Replies)
Discussion started by: parthmittal2007
4 Replies

5. Red Hat

How to open terminal automatically.

hi, I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout I does not know how to add my... (0 Replies)
Discussion started by: mypass
0 Replies

6. OS X (Apple)

how to open ~/.vim/ in 10.6

I have MacOSX 10.6, I cannot open this more than 24hours, Google is also not helpful. pubxx-xxx:~ xxx$ cd ~/.vim -bash: cd: /Users/xxx/.vim: No such file or directory pubxx-xxx:~ xxx$ PLEASE HELP!!! Thanks (1 Reply)
Discussion started by: c_lady
1 Replies

7. IP Networking

My router has UPnP, as do its work with ubuntu to automatically open ports

My router has UPnP,how to make it work with ubuntu to automatically open ports I try to open the following command " /sbin/iptables -I INPUT -d 0/0 -s 0/0 -p tcp --dport 21 -j ACCEPT" ,local only opens ,if i put the ip 192.168.1.68, it works correctly, if i`m put my external ip does not work,I... (9 Replies)
Discussion started by: dhalus
9 Replies

8. Solaris

How to open and arrange terminal windows automatically under CDE?

Hi, Is there a way to open and arrange terminal windows automatically under CDE? For example, I want to open and arrange terminal windows like this: |------------| | TW TW TW | | TW TW TW | | TW TW TW | |------------| Thank you in advanced! (5 Replies)
Discussion started by: aixlover
5 Replies

9. Shell Programming and Scripting

Open txt and store line in a var

Hi I realy need to find a way to do a script that does the following: search a word in a txt file then store on a var the letters that are on the right like this is an exemple, I want to store from here ...abcdefg... so I need a var that receive ...abcdefg... Is that possible?... (8 Replies)
Discussion started by: ruben.rodrigues
8 Replies

10. Shell Programming and Scripting

automatically open

Hi I am trying to write a script to automatically use a predefined program to open a file according to its extension... But I don't know how to pass "programeta" ... :confused: while ]; do case $1 in -pdf ) programeta="kpdf" shift 1 ;; ... (1 Reply)
Discussion started by: pau
1 Replies
Login or Register to Ask a Question

Featured Tech Videos