You are not logged in.

#1 2011-03-27 14:20:57

jpmelos
Member
From: São Carlos, SP, Brazil
Registered: 2011-03-27
Posts: 18
Website

[SOLVED] Vim Colors

Hello.

I've installed Arch Linux (migrated from Ubuntu) and I'm trying to get syntax highlighting from Vim, but I can't get it to work. Can anybody help me out with this?

If you need to know, I have the basic installation only: default xterm, default vim, etc... Do I need to install an specific package for this or something like that?

Thank you!

Last edited by jpmelos (2011-06-02 17:06:58)


João Paulo Melo de Sampaio
Studying Computer Engineering @ UFSCar
http://www.jpmelos.com

Offline

#2 2011-03-27 14:27:25

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Vim Colors

Welcome to the forums.  You can normally find what you need in the Wiki, take a look at the entry for Vim.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2011-03-27 14:35:56

jpmelos
Member
From: São Carlos, SP, Brazil
Registered: 2011-03-27
Posts: 18
Website

Re: [SOLVED] Vim Colors

I had already read the Vim wiki entry. Yet, no help. I do "syntax on" and Vim doesn't highlight the code.

I'm not sure this is a problem with Vim, really. I have a sense that maybe the terminal isn't supporting colors. I've searched the web already, and haven't found any really useful help so far. I'm using default xterm (installed with "pacman -S xterm"). But I'm not sure of anything.

Any help would be appreciated.

Thank you.

Last edited by jpmelos (2011-03-27 14:36:16)


João Paulo Melo de Sampaio
Studying Computer Engineering @ UFSCar
http://www.jpmelos.com

Offline

#4 2011-03-27 14:42:03

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] Vim Colors

Did you install vim or vi only? You will need the vim package at least.

However, best install the gvim package as this will provide you with everything built in.
Then, if you are not yet proficient with vim, try the "vimtutor" vim tutorial command in a terminal.

Otherwise you will get syntax highlighting with the ":syntax enable" command.
See the "Using syntax highlighting" chapter in the "Getting started" Vim ":help".

Last edited by bernarcher (2011-03-27 14:42:45)


To know or not to know ...
... the questions remain forever.

Offline

#5 2011-03-27 14:45:43

jpmelos
Member
From: São Carlos, SP, Brazil
Registered: 2011-03-27
Posts: 18
Website

Re: [SOLVED] Vim Colors

Thank you. Installing gvim worked!

And I'm surprised. Extremely fast and efficient support from the community! I'm already a fan! big_smile


João Paulo Melo de Sampaio
Studying Computer Engineering @ UFSCar
http://www.jpmelos.com

Offline

#6 2011-03-27 15:45:56

xiaq
Member
From: somewhere in China...
Registered: 2011-03-06
Posts: 89

Re: [SOLVED] Vim Colors

Remember to mark your thread as [solved] smile

Offline

Board footer

Powered by FluxBB