You are not logged in.

#1 2014-04-24 17:31:33

dudakl
Member
From: Germany
Registered: 2014-04-24
Posts: 13

[Solved] Weird VIM Color-Problems (maybe again)

Hey smile

I am quite new to ARCH-linux and all this DIY-stuff...and experiencing some problems with VIM and colorschemes.

I wanted to change my colorscheme to "desert" and got some weird colors. Other schemes look even worse, so i searched the web and made some changes:

# echo $TERM && tput colors
->xterm-256color
->256

Moreover i added the line:

set t_Co=256 

to my .vimrc.

But trying jasonwryan's miromiro theme looks still like this:

test.jpg

It should look like this:

http://farm3.static.flickr.com/2774/452 … c113_m.jpg

I don't really know, what's wrong...maybe DWM (my window manager) is messing things up?
It's quite curios, because i tried many tutorials, but nothing works right.

Any ideas?

P.S: I would be pleased, if you blame on my grammar mistakes, too! (still learning)

Last edited by dudakl (2014-04-25 19:00:27)

Offline

#2 2014-04-24 19:10:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Weird VIM Color-Problems (maybe again)

You don't have an italic in your terminfo: just remove that setting (cterm=italic) for comments in the colorscheme.

I thought I had added a note to that effect: my bad, sorry.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-04-24 20:54:44

dudakl
Member
From: Germany
Registered: 2014-04-24
Posts: 13

Re: [Solved] Weird VIM Color-Problems (maybe again)

That solved these white boxes, thanks! smile

But somehow, it won't look as expected:
testneu.jpg

Is it possible, VIM uses colors defined in my dwm/config.h? (using dwm-statuscolors.diff as a patch)

Or is ist possible to define colors on my own?
How do i build my own vim-colorscheme?
(so i can understand the theory behind that stuff...)

/Sidequestion: How can i apply more than one tag to one of the dwm-clients?
(not sure, if this is possible, but it seems to be usefull in my opinion,..)

Offline

#4 2014-04-24 21:15:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Weird VIM Color-Problems (maybe again)

It looks fine to me. I guess you are referring to the colours themselves, you need to define those in ~/.Xresources.

You can build your own colourscheme by changing the values in mine, or anyone else's. That is all I did.


Yes, dwm is built on the principle of applying mutliple tags to clients: in the default config, Mod-Shift-[1..n] will apply that tag to the focussed window/client.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-04-25 16:07:04

dudakl
Member
From: Germany
Registered: 2014-04-24
Posts: 13

Re: [Solved] Weird VIM Color-Problems (maybe again)

That's, what i missed! Everything worx! Thanks smile

But assigning more than one tag does not really work...
Mod-Shift-[1..n] just adds the chosen tag to the client. But it seems to overwrite any other tag, so it's not possible to have one or more tags assigned to a client.
If i have tag 1 focused and one terminal on it and then press Mod-Shift-[4] , it just moves out of my sight...i could change my focus to tag 4, but i want my terminal to be on tag 1 too...
Is there a missunderstanding from my point of view?

Offline

#6 2014-04-25 18:43:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Weird VIM Color-Problems (maybe again)

I open most of my common apps with rules: so my browser will be tagged web [2], mutt tagged mail [3] and tmux tagged term [3]. I work from base, tag 1.

If I want to add a calendar to my mail tag, I open the term in base, open khal and then assign it to [3]. It is no longer in view.

Later, if I want to look at mail, I pull i into view and I see both mutt and khal.

I have reversed the default binds as it makes more sense to me so Mod-Shift-[1..n] assigns the tag and Mod-[1..n] pulls it in to view. Nevertheless, it works as designed.


This is way off topic though...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-04-25 18:56:18

dudakl
Member
From: Germany
Registered: 2014-04-24
Posts: 13

Re: [Solved] Weird VIM Color-Problems (maybe again)

Ok...i think everything is clear now. Thank you smile

P.S: I try to get this thread closed, if i am able to find this option....

Offline

#8 2014-04-25 18:58:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Weird VIM Color-Problems (maybe again)

Just mark it [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2014-04-25 19:00:37

dudakl
Member
From: Germany
Registered: 2014-04-24
Posts: 13

Re: [Solved] Weird VIM Color-Problems (maybe again)

Done!

Offline

Board footer

Powered by FluxBB