LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2009, 08:52 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
vim: what are the names of text elements and colours?


Hello

I would like to change some of the colours used by vim because they are hard to read against the pale rose and pale blue backgrounds I like. I have tried :set background=light but it does not make any difference.

Netsearching shows colours can be changed by adding lines like this to ~/.vimrc
Code:
hi Comment term=bold ctermfg=lightblue guifg=lightblue
In that example, presumably "Comment" identifies a text element of vim's display. How can I get a list of vim's text elements' names? I want to change the colours of line numbers and (programming language) keywords.

This vim command shows a list of colours in colour but many of them are paler than I would like
Code:
:runtime syntax/colortest.vim
Is that the full range? Can they be tweaked using terminal emulator (mrxvt) settings?

Best

Charles
 
Old 11-15-2009, 09:13 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Found some answers by looking at the files in /usr/share/vim/vim72/colors and guessing. Line numbers are "LineNr" and what I was thinking of as language keywords are "Statements".
 
Old 11-15-2009, 05:53 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Definitely check this page out; a shed load of examples with the reqd settings
http://code.google.com/p/vimcolorschemetest/
 
Old 11-16-2009, 12:26 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Thanks chrsm01 Like you said -- a shed load of examples to work from.
 
  


Reply

Tags
color, colour, vim



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
Text elements do not appear in Flash or SVG Baryonic Being Linux - Software 0 07-31-2005 01:29 PM
OpenOffice Text Colours ilikejam Linux - Software 3 11-30-2004 09:27 AM
VIM and Colours krumms Linux - Software 5 05-23-2004 09:15 AM
PHP: referencing form elements with dynamic names Locura Programming 5 03-18-2004 10:24 AM
Text Reflow in Vim k4zau Linux - Software 4 02-29-2004 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration