LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-08-2002, 03:17 PM   #1
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
Vim syntax highlighting


When i start Vim i can issue ESC :syntax=C and i get what is supposed to be C syntax highlighting. However i find that with syntax highlighing function names such as printf() scanf(), etc... remain white (normal text color) and i would also like to change some other colors. Is this possible?
Thanks
-NSKL
 
Old 11-08-2002, 06:55 PM   #2
manaskb
Member
 
Registered: Jan 2002
Location: India
Distribution: Suse , Mandrake
Posts: 121

Rep: Reputation: 15
Re: Vim syntax highlighting

Quote:
Originally posted by NSKL
However i find that with syntax highlighing function names such as printf() scanf(), etc... remain white (normal text color) and i would also like to change some other colors. Is this possible?
Thanks
-NSKL
dude you can do a lot of things with vim.

All u want is to have the C functions to show up colored !!!

In that case I suggest that you see the file .../syntax/c.vim ( In my case this is located in /usr/share/vim/current/syntax/c.vim ). This is the file where all the syntax coloring , hilighting etc is defined for C. You will need to add your function names as keywords here.

- Manas
 
Old 11-09-2002, 02:39 AM   #3
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Original Poster
Rep: Reputation: 46
Sweet, thank you.
-NSKL
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RdHat Vim Syntax Highlighting R4z0r Linux - Software 8 09-06-2011 01:22 PM
vim syntax highlighting problems. donniejones18 Linux - Software 7 04-16-2006 08:03 PM
vim syntax highlighting MiniMe001 Linux - General 2 06-19-2005 11:08 AM
Adding Syntax Highlighting to VIM TastyWheat Linux - Software 2 02-27-2004 03:37 AM
Java syntax highlighting in vim Phantomas Linux - Software 0 08-16-2003 04:34 AM


All times are GMT -5. The time now is 01:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration