LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   syntax highlighting/color FC4/vi (https://www.linuxquestions.org/questions/fedora-35/syntax-highlighting-color-fc4-vi-340507/)

overlord73 07-06-2005 05:51 AM

syntax highlighting/color FC4/vi
 
hello,
have 2 little questions:

1) how can I enable syntax highlighting in FC4?
seems in FC3 itīs default, but /etc/vimrc are the same!?

2) when editing a file with vi I canīt see the row number at the bottom
how to enable this feature?


thx

overlord73 07-07-2005 07:51 AM

no ideas?
just compared /etc/DIR_COLORS.xterm in FC3 vs. FC4: both the same!
both machines are at runlevel 3, connected via ssh....
BUT on FC4 I have no syntax enabled in vi!!!

WHY???

gillius 07-12-2005 04:13 PM

I don't know if this is your problem, but I just installed FC4, and for me vi and vim are different. VI loads a very plain VI editor -- I would be extremely surprised if this was the true original VI (the one in use today really is VIM).

Try command vim instead of vi to edit files, vim stands for VI I(m)proved. I've done actually alias vi='vim' to enforce that for my user account. When running vim instead of vi I get all of the proper features.

overlord73 07-15-2005 04:48 AM

thx, right tipp!
vim wasnīt installed...how stupid ;-)
-> installed vim-common & vim-enhanced


All times are GMT -5. The time now is 09:44 PM.