Olivier_P n00b
Joined: 02 Aug 2002 Posts: 5
|
Posted: Fri Aug 02, 2002 3:50 pm Post subject: Vi : Segmentation fault --- How To Solve |
|
|
Hi,
As I had the the problem, but now, the solution, my purpose is to write a really short article to explain how to succed in Vi installation. This is not a pretentious work, I just would like to help Newbies. So please, feel free to modify and correct it ! And I apologize in advance for my bad english, I'm french...
THE PROBLEM :
------------------
The problem is that if you want to use 'vi', you do :
After, when you run Vi in a console, you obtain : Segmentation fault...
If you start it in an Xwindow eterm window, it works correctly...
To solve this problem simply, just type
Code: | #export TERM=vt100
or
#export TERM=vt200 |
ALTERNATIV SOLUTION : Use VIM instead VI
----------------------------------------------------
Vim is a vi clone with a lot of interesting features. In my mind, it's better to use it, but it just a question of choice
The main "problem" is that if you try to type :
Code: | emerge --pretend vim |
you will se that Portage wants add a lot of dependecies like Gnome parts, X-free ... This is because Vim can be compiled with a graphical support.
So there's two option :
1. Install Vim with X and Gnome support :
------------------------------------------------
Juste type
and enjoy
2. Install Vim without X and Gnome support
--------------------------------------------------
a. Set up your "USE" variable like this:
Code: | #export USE="-X -gnome -gtk -python" |
b. Run
IMPORTANT :
----------------
If you have first installed Vi and after, Vim, you should have a symbolic link automatically created, and which allow you to type 'vi', but in fact you'll use 'vim'
If not, you have to create this symbolic link manually.
Hope this is helpfull !
Olivier |
|