[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Debian] vim im xterm



Norbert Tretkowski <nobse@nobse.de> wrote:

> * Michael Hoenisch <m.hoenisch@gmx.net> wrote:
>> ich benutze häufig den VIm im Xterm. Bei eingeschaltetem Syntax-Highligting ist
>> der Text oft schwer zu lesen, da alles ziemlich dunkel dargestellt wird. Laut
>> Doku dachte ich, man kann das mit der Option set background=light| dark
>> ändern. Aber es ändert sich fast nichts.
>> Auf der Konsole und im GVim siehts gut aus. 
>> Gibts da noch etwas, was ich übersehen habe?
> 
> Ich weiss nicht ob das normale xterm diese Moeglichkeit bietet, aber
> zumindest beim eterm kann man die Helligkeit aendern. Zur Not nimm das
> mal.

Für das xterm wird man die Xresources für die ANSI-Farben anpassen
müssen: XTerm*VT100.color[0-15]. Siehe auch xterm(1) und ggfs. den
Abschnitt 'RESOURCES' aus X(3).

Ein Beispiel aus meiner ~/.Xresources:

 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 | !!
 | !! xterm (and applications in a xterm)
 | !!
 | 
 | !! These resources are defaults for xterm-windowed applications
 | !! and defined for _Class_ XTerm. They may be overridden in the
 | !! application specific sections below.
 | 
 | !! Setting default colors. Using slightly dimmed background color
 | !! for this is more eye-frindly.
 | !!
 | !XTerm*VT100.background: LightYellow2
 | XTerm*VT100.background: WhiteSmoke
 | !XTerm*VT100.foreground: Black
 | 
 | !! Customizing ANSI colors.
 | !! Generally, there are pairs of colorN, 0 <= N <= 7, and colorN+8.
 | !! Read this as colorN and brightcolorN, where brightcolorN will usual
 | !! be available as foreground color only.
 | !! Below, the comments will mention the S-Lang library color names
 | !! with the ANSI color name given in parantheses where appropriate.
 | !!
 | !! black and gray
 | !XTerm*VT100.color0: black
 | !XTerm*VT100.color8: gray30
 | !! red and brightred
 | !XTerm*VT100.color1: red3
 | !XTerm*VT100.color9: red
 | !! green and brightgreen
 | XTerm*VT100.color2: seagreen3
 | XTerm*VT100.color10: seagreen
 | !! brown (yellow) and yellow
 | XTerm*VT100.color3: orange3
 | !XTerm*VT100.color11: yellow
 | !! blue and brightblue
 | !XTerm*VT100.color4: blue3
 | !XTerm*VT100.color12: blue
 | !! magenta and brightmagenta
 | !XTerm*VT100.color5: magenta3
 | !XTerm*VT100.color13: magenta
 | !! cyan and brightcyan
 | !XTerm*VT100.color6: cyan3
 | !XTerm*VT100.color14: cyan
 | !! lightgray (white) and white
 | XTerm*VT100.color7: whitesmoke
 | !XTerm*VT100.color15: white

Auskommentierte Werte sollten den Defaults aus
   /usr/X11R6/lib/X11/app-defaults/XTerm
entsprechen.

Gruß Sonny

-- 
:wq

--
-----------------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie bitte eine
E-Mail an debian-user-de-request@lehmanns.de die im Subject
"unsubscribe <deine_email_adresse>" enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@Lehmanns.de
-----------------------------------------------------------

707 eingetragene Mitglieder in dieser Liste.


Reply to: