Vi


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Vi
# 1  
Old 10-21-2005
Vi

I've just been stupid and managed to lock myself out of vi. I entered in my .profile alias vi=vi | :set showmode. This has causes vi to return the error ":set: not found" when I try to get into vi.

Any suggestions?!

Thanks.
# 2  
Old 10-21-2005
use '/bin/vi' to edit your .profile
# 3  
Old 10-21-2005
mv .profile to .profile.orig

logout
login

vi .profile.orig and comment out /remove the offending line

mv .profile.orgi .profile

logout
login
# 4  
Old 10-21-2005
Thanks!

Thanks for the advice! Got it sorted out.

John.
# 5  
Old 10-21-2005
haha .. sorry, vgersh99's solution is much better ... I wrote the reply then went afk came back and posted before checking the thread.

The simple solution is most often the best :-)
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question