VIM and Syntax

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
scorp123
Level 8
Level 8
Posts: 2272
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Re: VIM and Syntax

Post by scorp123 »

pinger wrote:New install of Mint, when opening files in vi, I cannot enable the syntax option.
I see you found the solution yourself :wink: Yes, you need the full vim installation.

If you want the syntax highlighting to be always on by default you can modify the main config file:

Code: Select all

KDE: sudo kate /etc/vimrc
GNOME: sudo gedit /etc/vimrc
vi: vim /etc/vimrc
Add or edit this line so that it looks like this:

Code: Select all

...
syntax on
...
If you knew all of this already ... Oh well. Someone else will hopefully appreciate this info :wink:
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Boo
Level 7
Level 7
Posts: 1633
Joined: Mon Mar 26, 2007 7:48 am

Post by Boo »

I love vi!

and vim!

:D
Image
Now where was i going? Oh yes, crazy!
Locked

Return to “Other topics”