You are not logged in.
Pages: 1
Topic closed
I'm trying desperately to make urxvt show some nice colors AND use my vim color scheme (gentooish) !
But no matter what I do I cant have both !
I want to use urxvt because i like the tabmode, but somehow it breaks my vim theme !
I know this issue has been brougth here in this forum, and I've read all of them, but I cant find a solution that works properly with my setup.
Help is needed !!
/Niels
Registered Linux user #133791
Get counted at http://counter.li.org
Offline
vim (as used in a terminal) supports only 16-colour themes by default--the same 16 colours that you define in ~/.Xdefaults. Gvim, on the other hand, provides full theming capabilities.
Last edited by thayer (2008-11-18 16:54:21)
thayer williams ~ cinderwick.ca
Offline
Thanks for replying
Could you be more specific please ?
My .Xdefaults looks like this
! Colours
!URxvt*foreground: #BBBBBB
URxvt*foreground: #FFFFFF
URxvt*background: #191919
URxvt*colorBD: #EEEEEF
! Black
URxvt*color0: #404040
!URxvt*color8: #252525
! Red
URxvt*color1: #C12121
URxvt*color9: #E50E0E
! Green
URxvt*color2: #75BD00
URxvt*color10: #89b83f
! Yellow
URxvt*color3: #EDD76A
URxvt*color11: #efef60
! Blue
URxvt*color4: #4F6FAE
URxvt*color12: #3F6FD0
! Magenta
URxvt*color5: #706c9a
URxvt*color13: #826ab1
! Cyan
URxvt*color6: #508695
URxvt*color14: #a1cdcd
! White
URxvt*color7: #BBBBBB
URxvt*color15: #EEEEEF
! Settings
URxvt*termName: xterm
URxvt*loginShell: false
URxvt*scrollBar: false
URxvt*saveLines: 10000
URxvt*font: xft:Terminus:size=11
!URxvt*shading: +10
URxvt*geometry: 90x35
URxvt*internalBorder: 0
!URxvt*perl-ext-common: default,matcher
URxvt*colorUL: white
URxvt*urlLauncher: firefox
URxvt*matcher.button: 1
URxvt*cursorUnderline: false
URxvt*boldFont: xft:Terminus:size=11
URxvt*scrollTtyOutput: false
URxvt*scrollTtyKeypress: true
URxvt*scrollKey: true
URxvt*scrollWithBuffer: false
Xft.dpi: 96
XTerm*font: 9x15
XTerm*background: black
XTerm*foreground: white
/Niels
Registered Linux user #133791
Get counted at http://counter.li.org
Offline
Nevermind I think I'll try to get used to gvim
/Niels
Registered Linux user #133791
Get counted at http://counter.li.org
Offline
You can enable 256 colors in vim, if your terminal supports it. :set t_Co=256. You then need to use a colorscheme that also supports 256 colors such as inkpot.
See: http://vim.wikia.com/wiki/256_colors_in_vim
Last edited by rson451 (2008-11-18 22:21:11)
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
vim (as used in a terminal) supports only 16-colour themes by default--the same 16 colours that you define in ~/.Xdefaults. Gvim, on the other hand, provides full theming capabilities.
Actually, vim has support for 88 and 256 color modes. It *should* detect this just fine and do things properly.
The root of the problem: setting termName to something that is NOT the terminal you're using. I have no idea where people get this idea from, but it's wrong wrong wrong. If you're using urxvt, the termname is not "xterm". Just delete that line. The terminal knows it's own name very well.
More to the point - xterm does not support more than 16 colors. So telling every other application that "this terminal is xterm" is ALSO telling those apps to use 16 colors. Again... just delete this line.
Offline
Well, I delete this line and colors went back into vim
But the colorscheme still isn't right
I also deleted the colorlines in .Xdefaults, but still the colors isn't as it is supposed to be.
Apparently the gentooish colorscheme makes trouble in a terminal, like the author says on his website:
http://briancarper.net/2008/05/10/vim-c … gentooish/
Should have noticed this sorry.
I thought it was a problem with my terminal setup beacuse I have problems with the backspacekey and Alt+d when deleting words in xterm, but I will start a new thread about this.
I am going to use gvim instead
Last edited by niller (2008-11-19 07:52:28)
/Niels
Registered Linux user #133791
Get counted at http://counter.li.org
Offline
nothing to do with colours, but ...
I can no longer (vi/vim) use the mouse to select/paste *big sigh*
I must've been using it more than I realized!!
Can anyone tell me how to get that behaviour back?
Offline
:set mouse=a ?
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
Regarding GUI colorschemes on the terminal. You can try: http://www.vim.org/scripts/script.php?script_id=1809
Offline
:set mouse=a ???
OK, I tried that but no luck.
doing a ':set all', the only reference (that I could see) to 'mouse' was 'set ttymouse=xterm2' - I tried that as well but with equal result (ie no dice)
This is really starting to annoy me big time. What the hell has happened - and exactly _which_ update did it?
As far as I can remember, it must have been at least a couple of months ago - I did notice it at one point, but I had other fish to fry at the time, so didn't think too much about it. Now I really _do_ miss it!!
For the record, I'm running xfce - but I do believe this is more a vi/vim problem - I can use the mouse to select/paste easily enough in 'terminal/gnome-terminal/konsol' when using the cli ...
[edit]
Humble apologies - 'set mouse=a' _does work_ in vim, but not vi ... and I do prefer vi, though that might just be old habit - I could always alias it ...
Last edited by perbh (2008-11-20 03:39:08)
Offline
The vi binary loads ~/.virc not ~/.vimrc. You could try symlinking them
Offline
Thanks phrakture, I'll try that ... although ..
When I tested it out in vi I did it inside of vi ':set mouse=a' and it didn't help.
Guess my best bet is to use vim instead and just make vi an alias for vim ... :-(
I don't know about the rest of you - but some of these colour-schemes for vim (and vi for that matter) really sucks. Whether I use a black or white (actually I prefer semi-transparent) background, there is always something that you just cannot see properly. Also the search highlights are always carried over from one session to the next - irritates the life outta me!
Now I've turned off search highlighting and 'syntax off' - just as it used to be in days of yore *chuckles* - and of course, the ~-files which never used to be there and now crops up all over the place.
For anyone suffering from the same woes - add this to your .vimrc
set nobackup
set nowritebackup
set noswapfile " mind you, swapfiles may be handy - it has saved me on a couple of occasions
Offline
I use a theme called darkdot and I've not encountered problems reading with these colors and I use a semi-transparent black term. The default themes do suck for the most part, you just have to look for something you like. The ~ file thing is a recent change in the default config I believe.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
... running off to check for 'darkdot' ...
:-( - alas, it's not there.
In all honesty, I couldn't remember it and I am sure I have tried _every_ colorscheme there is, at least all those in /usr/share/vim/colors
Where did you find your 'darkdot' ?
Offline
https://trac.hvergi.net/arnarmisc/brows … arkdot.vim is one place. If you don't trust the security cert, I'm sure google knows of others.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
rson - thanks for the link.
I downloaded it and it blew up in my face!! (that's not your fault!) - I need to do some detective work here ..
I have managed to get the mouse to work of-sorts with 'set mouse=a', but there is still a long way to go *sigh*
In the old days - there was a 'mouse cursor' and a 'key cursor' and the mouse was used to select parts of text while the 'key cursor' decided where the selection was pasted. This has been in vi/vim since time immortal - at least since 'X' *chuckles*. Nowadays - the two cursors seem to be the same and there is no rhyme or reason to how they all interact. Heck - I can't even do ctrl/c and ctrl/v (ala nedit). And this is called progress?!?!?! The only advantage is that I can use the mouse to scroll, but quite honestly, my fingers are so used to use arrows or ctrl-keys that I dont even _think_ about the mouse.
Thanks for letting me rant on your forum!!
Offline
So going back to the OP, what's the solution?
I'm using rxvt with psuedo-transparency. I like having it on usually, but once I get into VI I get irritated by my background eating up certain shades of color. (My background isn't complicated, but has thin stripes of most of the color spectrum.) So I just use the "evening" color scheme, which uses a solid background.
With TERM=xterm, vi uses the desired black background in rxvt. With TERM=rxvt-unicode, I get a grey background. But with TERM=rxvt I get the desired black background. So for now, I have TERM=rxvt, but I don't know enough about the differences of rxvt vs urxvt to know if, as phrakture aluded to above, I'm not providing the full (enough) truth to shell-run apps.
Offline
With TERM=xterm, vi uses the desired black background in rxvt. With TERM=rxvt-unicode, I get a grey background. But with TERM=rxvt I get the desired black background. So for now, I have TERM=rxvt, but I don't know enough about the differences of rxvt vs urxvt to know if, as phrakture aluded to above, I'm not providing the full (enough) truth to shell-run apps.
Why don't you set the following alias in your .bashrc?
[ "$TERM" = "rxvt-unicode" ] && alias vim='TERM=xterm vim'
This way you only affect a specific program rather than all of them.
Last edited by rscholer (2008-11-22 02:47:43)
Offline
I had a problem with zenburn colorscheme working in xterm but not in urxvt. The fix for me was to install unicode-rxvt-256color from [community] and now it works fine!
Offline
I had a problem with zenburn colorscheme working in xterm but not in urxvt. The fix for me was to install unicode-rxvt-256color from [community] and now it works fine!
This thread is 2 years old. I bet the op have solved it by now.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
How do people even find these when looking for stuff?
[git] | [AURpkgs] | [arch-games]
Offline
How do people even find these when looking for stuff? :(
% whereis whatis whence which whoami whois who
Offline
Daenyth wrote:How do people even find these when looking for stuff?
Don't bump necroposted threads......
Oh, wait. /facepalm/
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
http://wiki.archlinux.org/index.php/For … Bumping.27
2-year old thread is old. Closing
Offline
Pages: 1
Topic closed