5. Problems Opening Files with vi

		

	Problem		How come?		What to do
	-------   	---------     		----------    
1) When you invoke vi, 	Terminal Type not	Quit using :q 
the message:		correctly identified	and make sure 
[open mode] appears 				you have defined
						a terminal type 
						(using env).

2) You see:            	Undefined Terminal	Quit using :q 
(a) Visual needs        type or something 	and ask system
    addressable cursor;	wrong with termcap	admin. to select 
(b) Bad Termcap entry;	or terminfo entry.	a terminal type
(c) Terminal: unknown 				for your	
    terminal type;				environment.
(d) Block device required;			(e.g. $ TERM=vt100 )
(e) Not a typewriter				
       
3) A new file message	You're in the wrong 	Quit via :q
appears when  you think	directory or you 	and use pwd to
a file already exists	misspelled the name 	see where you 
			or it's gone		are and ls to
   						show how to
						spell the name

4) You see the message:	You do not have
(a) [Read only]		write permission 	Use :w! newfile
(b) File is read only;	for this file
(c) Permission denied
 
5) You see:		The file you called	Quit and try 
(a) Bad file number	up to edit is not an	another
(b) Block Special file	ascii (text) file
(c) Character Special 
    file
(d) Directory
(e) Executable
(f) Non-Ascii file
  
6) When you type :q 	You have made 		Quit via :q!
you see:		some edits without 
(a) No write since 	realizing it
last change (:quit! 
overrides) 	

Questions? Robert Katz: arkay@arkaye.org
Last Update July 6, 2015