LinuxQuestions.org
Help answer threads with 0 replies.
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: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,528
Blog Entries: 27

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,528
Blog Entries: 27

Original Poster
Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,239

Rep: Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024
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: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,528
Blog Entries: 27

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


Reply

Tags
color, colour, vim


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
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


All times are GMT -5. The time now is 06:52 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