You are not logged in.

#26 2005-07-28 22:58:23

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: vim in terminal

xerxes2 wrote:

i love you phrakture!!! tongue

i just bought a new hdd(samsung ultraquiet 200gb) and did a fresh archinstall, copied over my old homedir and everything worked except for this term stuff,

i was just about to post a thread when i saw this, tongue

Hah! My terminal color scheme rules, too - the commented one is good as well.

Offline

#27 2005-07-28 23:17:20

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: vim in terminal

it doesn't work as it should yet,
just half of the colours in the themes show up,
urxvt and xterm are the same,


arch + gentoo + initng + python = enlisy

Offline

#28 2005-07-28 23:20:48

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: vim in terminal

xerxes2 wrote:

it doesn't work as it should yet,
just half of the colours in the themes show up,
urxvt and xterm are the same,

huh? mine work fine... can you post a screenshot or something?

Offline

#29 2005-07-28 23:27:10

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: vim in terminal

i guess i could but i'm too pissed to do it,
wtf could it be? i'm using the same .Xdefaults as before,

is this line from .bashrc right?
export TERM='xterm-color'

i didn't have that in my old setup because i'm using the same homedir,

edit: the themes are only showing colors 0-7 not 8-15,
it worked before so it must be something easy to fix,

edit2: i've found a workaround, big_smile calling the colors by name instead of numbers worked, strange though that it worked with numbers before,


arch + gentoo + initng + python = enlisy

Offline

#30 2005-07-29 15:42:19

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: vim in terminal

and here is the beuty: http://art.archlinux.org/main.php?g2_vi … itemId=513

now everything can go back to normal again,  8)


arch + gentoo + initng + python = enlisy

Offline

#31 2005-08-04 17:33:50

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 552

Re: vim in terminal

phrakture and xerxes,

I'm in the process of trying all this and alsosuck at the color thingy:
after opening vim:
http://www.justdreams.de/archlinux/imag … r_open.jpg
after set background=light
http://www.justdreams.de/archlinux/imag … _light.jpg
after set background=dark
http://www.justdreams.de/archlinux/imag … g_dark.jpg

it seems that it follows these rules:
it takes the 8 colors defined as dark* and displays the normal
as soon as you request either bold or a light* color you automatically
get the bright version bold. So these combination are just as bundles
available hmm
How does it looks at yours when you open the

:e $VIMRUNTIME/syntax/colortest.vim

and

:source %

it
http://www.justdreams.de/archlinux/imag … ortest.jpg
?

-neri

Offline

#32 2005-08-05 03:22:33

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: vim in terminal

Actually, I do have a followup question on the 'xterm-color' thing.  It does work when I set the property manually on a command line, but for some reason it doesn't seem to stay set when putting

export TERM='xterm-color'

in my .bashrc file.  Is there some other place this could be getting set back to just 'xterm' after the .bashrc file is sourced?

Offline

#33 2005-08-05 05:15:19

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: vim in terminal

i think theres an option which can go in ~/.Xdefaults

iphitus

Offline

#34 2005-08-05 15:41:35

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: vim in terminal

iphitus wrote:

i think theres an option which can go in ~/.Xdefaults

iphitus

yeah it's something like:

aterm*termName: xterm-color
urxvt*termName: xterm-color
xterm*termName: xterm-color
etc...
etc...

Offline

#35 2005-08-05 21:05:09

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: vim in terminal

Thanks...I'll check that out and let you know.

Offline

#36 2005-08-05 23:16:24

sullivanva
Member
From: Herndon, VA USA
Registered: 2005-07-21
Posts: 126

Re: vim in terminal

What is up with this color crap? 

Desert?  Can I get mine in pink pussycat with just a hint of periwinkle?

I use vi, and it's black and white.  I don't want to know what mode I'm in.  If I bang on the Esc key enough I'll get into edit mode.

I don't use ZZ to exit out, because that's something an emacs user would do.

If I want pretty colors, I go out in the garden!

--Manly Man


--HAPS

Offline

#37 2005-08-11 14:35:32

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 552

Re: vim in terminal

More color crap - /me hugs his colors a bit.
After describing here:
http://bbs.archlinux.org/viewtopic.php?p=107004#107004
how to make you urxvt aware of more then 8 dark and 8 bolded
colors, now here comes the vim part.

Actually, there is no big deal, you should just make sure that other
non 88 color terms don't run into problems on that issue. This is
what it looks like, more that 8 colors and none of them is bolded. So
you or your vim colorscheme can decide, which elements should be
bolded and which not should be.
http://www.justdreams.de/archlinux/imag … ortest.jpg

" Take care of the colors rxvt-unicode can display, note the also mrxvt honours
" these settings and maybe othe rxvt clones as well!
if $COLORTERM =~ 'rxvt-xpm'
  " terminfo set colors to 88 from where vim greps the info
  " we define a cterm friendly scheme, this a  home hacked one
  colorscheme tobbi
else
  " a fallback for mlterm and other terms
  set t_Co=16
  " some color mappings taken from vim manual
  set t_AB=[^[%?%p1%{8}%<%t25;%p1%{40}%+%e5;%p1%{32}%+%;%dm
  set t_AF=[^[%?%p1%{8}%<%t22;%p1%{30}%+%e1;%p1%{22}%+%;%dm
  " load schemes only when colorsettings are defined!
  colorscheme desert
endif

Note: the [^ is actually a written escape char, make sure you set it correctly

This colorscheme (store in ~/.vim/colors/tobbi.vim) is modeled to
match gvims appearance when desert is loaded.

" Vim color file

set background=dark
hi clear
if exists("syntax_on")
  syntax reset
endif
let g:colors_name = "tobbi"
" define theme for b/w terms only
hi Comment    term=bold
hi Constant   term=underline
hi Special    term=bold
hi Identifier term=underline
hi Statement  term=bold
hi PreProc    term=underline
hi Type       term=underline
hi Function   term=bold
hi Repeat     term=underline
hi Error      term=reverse
hi Todo       term=standout

" god bless the rainbow -> I LIKE COLORS!
" here comes the colored term - modelled to match deserts gui colors
hi Normal                     ctermfg=white   ctermbg=NONE
hi Comment                    ctermfg=LightBlue
hi Constant                   ctermfg=LightGrey
hi Special                    ctermfg=LightGrey
hi Identifier cterm=NONE      ctermfg=LightGreen
hi Statement  cterm=bold      ctermfg=Yellow
hi PreProc                    ctermfg=DarkRed
hi Type       cterm=bold      ctermfg=DarkYellow
hi Function                   ctermfg=DarkYellow
hi Repeat     cterm=bold      ctermfg=Yellow
hi Operator   cterm=bold      ctermfg=Yellow
hi String                     ctermfg=red
hi Ignore                     ctermfg=black
hi Error                      ctermbg=Red         ctermfg=White
hi Todo                       ctermbg=Yellow      ctermfg=Black

" a gui theme
hi Normal                     guifg=cyan          guibg=black
hi Comment                    guifg=#80a0ff
hi Constant                   guifg=Magenta
hi Special                    guifg=Red
hi Identifier                 guifg=#40ffff
hi Statement  gui=bold        guifg=#aa4444
hi PreProc                    guifg=#ff80ff
hi Type       gui=bold        guifg=#60ff60
hi Function                   guifg=White
hi Repeat                     guifg=white
hi Operator                   guifg=Red
hi Ignore                     guifg=bg
hi Error                      guifg=White         guibg=Red
hi Todo                       guifg=Blue          guibg=Yellow


" Common groups that link to default highlighting.
" You can specify other highlighting easily.
"hi link String         Constant
hi link Character      Constant
hi link Number         Constant
hi link Boolean        Constant
hi link Float          Number
hi link Conditional    Repeat
hi link Label          Statement
hi link Keyword        Statement
hi link Exception      Statement
hi link Include        PreProc
hi link Define         PreProc
hi link Macro          PreProc
hi link PreCondit      PreProc
hi link StorageClass   Type
hi link Structure      Type
hi link Typedef        Type
hi link Tag            Special
hi link SpecialChar    Special
hi link Delimiter      Special
hi link SpecialComment Special
hi link Debug          Special

-neri

Offline

#38 2005-08-15 16:42:14

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: vim in terminal

neri - can you post your Xdefaults? or are those default colors?

Offline

#39 2005-08-15 19:48:30

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: vim in terminal

nice of neri to continue the quest for the perfect terminal,
i'm wating anxiously for him to release urxvt to extra, smile


arch + gentoo + initng + python = enlisy

Offline

#40 2005-08-15 20:00:03

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: vim in terminal

xerxes2 wrote:

nice of neri to continue the quest for the perfect terminal,
i'm wating anxiously for him to release urxvt to extra, smile

Heh, we all are *pokes neri*

Offline

#41 2005-08-15 20:14:48

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 552

Re: vim in terminal

phrakture wrote:
xerxes2 wrote:

nice of neri to continue the quest for the perfect terminal,
i'm wating anxiously for him to release urxvt to extra, smile

Heh, we all are *pokes neri*

Ouuch, uuuh, oh, stop it, I reply ...
seriously, I did some further research. The issue is more related to terminal
colors, hence watch the rxvt-unicode thread.

EDIT: vim stuff better goes here ...

Following things have been observed:
1. when you use the TermColors as defined in .Xdefault and call them by
    numbers as listed here
    http://vim.dindinx.net/orig/html/syntax … ht-ctermfg
    your vim will use the colors defined in .Xdefaults - BUT
    it will also behave like an 8 color terminal and boldize the colors 8-15 sad
2. when using color names like darkred, indianred3 etc - mind these are
    the predifined X-colours - described in /usr/X11R6/lib/X11/rgb.txt
    It might be possible to redefine them in .Xdefaults, but I dunno how.

A maybe better .vimrc

" Take care of the colors rxvt-unicode can display, note the also mrxvt honours
" these settings and maybe othe rxvt clones as well!
if $COLORTERM =~ 'rxvt-xpm'
  " redefine colors to 88 - necessary if $TERM!=rxvt-unicode
  set t_Co=88
  " we define a cterm friendly scheme, this a  home hacked one
  colorscheme tobbi
else
  " a fallback for mlterm and other terms
  set t_Co=16
  " some color mappings taken from vim manual
  set t_AB=[^[%?%p1%{8}%<%t25;%p1%{40}%+%e5;%p1%{32}%+%;%dm
  set t_AF=[^[%?%p1%{8}%<%t22;%p1%{30}%+%e1;%p1%{22}%+%;%dm
  " load schemes only when colorsettings are defined!
  colorscheme desert
endif

hth a bit,
-neri

PS: can someone start a wiki on the urxvt-vim combo since it si very
powerful but very hard to configure, I contribute to it later tongue

Offline

Board footer

Powered by FluxBB