On 28/04/11 20:05, Michael Hauser wrote:
On Thu, Apr 28, 2011 at 19:21, Ben Schmidt
<[email protected]> wrote:
I've redircted the output of ':verbose hi' along with the outputs of
'set' for both user and root earlier, and posted them in this thread,
and they do differ.
Yes; I glanced at that earlier. I didn't realise :verbose had been
included that time.
I actually only saw the diff Tony included in his post. Perhaps your
original diffs didn't make it to the list.
An interesting option is this:
:verbose set background?
as user:
:verbose set background?
dark
:set background=light
Yes, that was it!
I've put 'set background=light' into the '.vimrc' and everything looks nice now.
? It definitely affects boldness for some syntax colour stuff and is a
likely candidate for affecting other colours too. Why Vim would
detect/guess it differently when root and not, I don't know, but it
could definitely be playing a part.
Well, this riddle remains unsolved.
Well, from the tar.bz2 archive you sent earlier, mih has $COLORFGBG set
and root hasn't.
I'm attaching a diff of the environments, taken with -u0 to eliminate
all matching lines and concentrate on what differs. Hm, mih also has a
$TERMCAP setting absent from root. The other settings don't ring any
bells with me.
Setting 'bg' to "light" in your vimrc has solved your problem anyway --
at least, what concerns Vim. If the same thing happens in other
programs, you could try setting (or unsetting) COLORFGBG in one of your
shell startup scripts. (How the startup scripts are named varies from
shell to shell, and on Unix/Linux that means quite a number of possible
choices, so check the manpage for the shell you are using.)
Ben.
You nailed it down, Ben.
Many thanks to you all!!!
:)
mih
ps. I've attached the output files again, if someone cares... and a
little picture.
Lovely picture. :-)
Well, as you can see, "true hackers" love to try and solve a really
tough and baffling problem, especially if the reporter is willing to
answer questions and conduct experiments. :-)
Happy Vimming,
Tony.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--- root.set 2011-04-25 16:15:17.000000000 +0200
+++ user.set 2011-04-25 16:14:52.000000000 +0200
@@ -1 +1 @@
-'!'=4341
+'!'=18562
@@ -3 +3 @@
-'$'=1066
+'$'=27666
@@ -7 +7 @@
-'?'=100
+'?'=0
@@ -10,0 +11 @@
+COLORFGBG='default;default;0'
@@ -13,0 +15,4 @@
+DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-bWT22MjjRM,guid=2fa65ec18943db9d86afef0600022897'
+DEFAULTS_PATH=/usr/share/gconf/awesome.default.path
+DESKTOP_SESSION=awesome
+DESKTOP_STARTUP_ID=awesome/terminal/27580-0-tessellated_TIME0
@@ -15 +20 @@
-EGID=0
+EGID=1000
@@ -17 +22 @@
-EUID=0
+EUID=1000
@@ -20 +25,7 @@
-GID=0
+GDMSESSION=awesome
+GDM_KEYBOARD_LAYOUT='us altgr-intl'
+GDM_LANG=en_US.utf8
+GID=1000
+GNOME_KEYRING_CONTROL=/tmp/keyring-Qnq2qg
+GNOME_KEYRING_PID=27561
+GTK_MODULES=canberra-gtk-module
@@ -22,2 +33,2 @@
-HISTCMD=277
-HISTFILE=/root/.zhist
+HISTCMD=11918
+HISTFILE=/home/mih/.zhist
@@ -25 +36 @@
-HOME=/root
+HOME=/home/mih
@@ -31 +42 @@
-LINENO=11
+LINENO=362
@@ -36,2 +47,2 @@
-LOGNAME=root
-LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:'
+LOGNAME=mih
+LS_COLORS='no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;1:st=37;44:ex=01;32:*.swf=01;32:*.tar=00;31:*.tgz=00;31:*.tbz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.rar=00;31:*.deb=00;31:*.rpm=00;31:*.jar=00;31:*.7z=00;31:*.jpg=00;35:*.JPG=00;35:*.jpeg=00;35:*.gif=00;35:*.bmp=00;35:*.pbm=00;35:*.pgm=00;35:*.ppm=00;35:*.tga=00;35:*.xbm=00;35:*.xpm=00;35:*.pnm=00;35:*.tif=00;35:*.tiff=00;35:*.png=00;35:*.PNG=00;35:*.svg=00;35:*.svgz=00;35:*.svg.gz=00;35:*.mov=00;35:*.MOV=00;35:*.dvd=00;35:*.mp4=00;35:*.mpg=00;35:*.mpeg=00;35:*.avi=00;35:*.wmv=00;35:*.flv=00;35:*.fli=00;35:*.3gp=00;35:*.gl=00;35:*.dl=00;35:*.xcf=00;35:*.xwd=00;35:*.mod=00;35:*.xm=00;35:*.it=00;35:*.s3m=00;35:*.flac=00;35:*.mp3=00;35:*.MP3=00;35:*.mpc=00;35:*.ogg=00;35:*.spx=00;35:*.wav=00;35:*.rm=00;35:*.gnumeric=00;33:*.blend=00;33:*.blend1=00;33:*.blend2=00;33:*.blend3=00;33:*.blend4=00;33:*.blend5=00;33:*.dvi=00;33:*.lisp=00;33:*.rtf=00;33:*.rtf.gz=00;33:*.rtf.bz2=00;33:*.abw=00;33:*.odt=00;33:*.fb2=00;33:*.fb2.gz=00;33:*.cgi=00;33:*.css=00;33:*.htm=00;33:*.htm.gz=00;33:*.htm.bz2=00;33:*.html.bz2=00;33:*.html.gz=00;33:*.html=00;33:*.xml=00;33:*.torrent=00;33:*.epub=00;33:*.lyx=00;33:*.pdf=00;33:*.pdf.gz=00;33:*.pdb=00;33:*.doc=00;33:*.info=00;33:*.nfo=00;33:*.sed=00;33:*.c=00;33:*.cpp=00;33:*.c++=00;33:*.h=00;33:*.m4=00;33:*.am=00;33:*.ac=00;33:*.js=00;33:*.function=00;33:*.ash_function=00;33:*.screen_function=00;33:*.sh=00;33:*.zsh=00;33:*.dash=00;33:*.bash=00;33:*.py=00;33:*.rb=00;33:*.lua=00;33:*.txt=00;33:*.txt.gz=00;33:*.txt.bz2=00;33:*.log=00;33:*.ini=00;33:*.config=00;33:*.conf=00;33:*.rc=00;33:*.sav=00;33:*.sig=00;33:*.xpf=00;33:*.desktop=00;33:*.cbr=00;33:*.o=01;33:*.in=01;33:*.cache=01;33:*.pid=01;30:*.b=01;30:*.old=01;30:*.bak=00;36:'
@@ -39 +49,0 @@
-MAIL=/var/mail/root
@@ -41,0 +52 @@
+MANDATORY_PATH=/usr/share/gconf/awesome.mandatory.path
@@ -47 +58 @@
-OLDPWD=/home/mih
+OLDPWD=/home/mih/Downloads/nh
@@ -54,2 +65,2 @@
-PPID=27661
-PROMPT='%{[0;38m%} [%{[0;34m%}%1~%{[0;38m%}] # '
+PPID=27659
+PROMPT='%{[0;38m%} [%{[0;34m%}%1~%{[0;38m%}] '
@@ -59 +70 @@
-PS1='%{[0;38m%} [%{[0;34m%}%1~%{[0;38m%}] # '
+PS1='%{[0;38m%} [%{[0;34m%}%1~%{[0;38m%}] '
@@ -65 +76 @@
-RANDOM=6657
+RANDOM=5581
@@ -67 +78 @@
-RPROMPT='%{[0;38m%} [%{[0;35m%}%*%{[0;38m%}]'
+RPROMPT='%{[0;38m%} [%{[0;35m%}%*%{[0;38m%}] [%{[0;34m%}0%{[0;38m%}]'
@@ -69 +80 @@
-RPS1='%{[0;38m%} [%{[0;35m%}%*%{[0;38m%}]'
+RPS1='%{[0;38m%} [%{[0;35m%}%*%{[0;38m%}] [%{[0;34m%}0%{[0;38m%}]'
@@ -72 +83 @@
-SECONDS=79251
+SECONDS=88610
@@ -76,4 +87,3 @@
-SUDO_COMMAND=/bin/su
-SUDO_GID=1000
-SUDO_UID=1000
-SUDO_USER=mih
+SSH_AGENT_PID=27646
+SSH_AUTH_SOCK=/tmp/ssh-FYAzg27580/agent.27580
+STY=27659.pts-0.tessellated
@@ -80,0 +91,23 @@
+TERMCAP='SC|screen|VT 100/ANSI X3.64 virtual terminal:\
+ :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
+ :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
+ :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
+ :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
+ :li#27:co#101:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
+ :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
+ :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
+ :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
+ :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
+ :se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
+ :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\
+ :vb=\Eg:G0:as=\E(0:ae=\E(B:\
+ :ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\
+ :po=\E[5i:pf=\E[4i:k0=\E[10~:k1=\EOP:k2=\EOQ:k3=\EOR:\
+ :k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
+ :k9=\E[20~:k;=\E[21~:F3=\E[25~:F4=\E[26~:F5=\E[28~:\
+ :F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:kb=:\
+ :K1=\EOw:K2=\EOu:K3=\EOy:K4=\EOq:K5=\EOs:kB=\E[Z:\
+ :kE=\E[8\^:*4=\E[3$:*7=\E[8$:#2=\E[7$:#3=\E2$:#4=\E[d:\
+ :%c=\E[6$:%e=\E[5$:%i=\E[c:kh=\E[1~:@1=\E[1~:kH=\E[4~:\
+ :@7=\E[4~:kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:ku=\EOA:\
+ :kd=\EOB:kr=\EOC:kl=\EOD:km:'
@@ -84 +117 @@
-TTY=/dev/pts/2
+TTY=/dev/pts/6
@@ -86,3 +119,4 @@
-UID=0
-USER=root
-USERNAME=root
+UBUNTU_MENUPROXY=libappmenu.so
+UID=1000
+USER=mih
+USERNAME=mih
@@ -91,0 +126,3 @@
+WINDOW=0
+WINDOWID=20971530
+WINDOWPATH=4
@@ -94 +131,3 @@
-XDG_SESSION_COOKIE=f98cb18b9862d19008d2777f0000000b-1303661666.690652-1238749248
+XDG_CONFIG_DIRS=/etc/xdg/xdg-awesome:/etc/xdg
+XDG_DATA_DIRS=/usr/share/awesome:/usr/local/share/:/usr/share/
+XDG_SESSION_COOKIE=f98cb18b9862d19008d2777f0000000b-1303652231.208427-1902216231
@@ -100,0 +140,2 @@
+_JAVA_AWT_WM_NONREPARENTING=1
+_cmd_variant=(du gnu ls gnu mkdir gnu rm gnu )
@@ -102 +143 @@
-_comp_dumpfile=/root/.zcompdump
+_comp_dumpfile=/home/mih/.zcompdump
@@ -112 +153,2 @@
-_lastcomp=(all_quotes '\' completer complete context redirect exact '' ignored 0 insert automenu-unambiguous insert_positions 14 iprefix '' isuffix '' last_prompt yes list ambiguous list_lines 2 list_max 100 nmatches 1 pattern_insert menu prefix roo qiprefix '' qisuffix '' redirect '>' restore auto suffix '' tags ' all-files ' to_end match unambiguous root.set unambiguous_cursor 9 unambiguous_positions 8 vared '' )
+_lastcomp=(all_quotes '\' completer complete context command exact '' ignored 0 insert automenu-unambiguous insert_positions 12 iprefix '' isuffix '' last_prompt yes list ambiguous list_lines 2 list_max 100 nmatches 1 pattern_insert menu prefix .Xdef qiprefix '' qisuffix '' restore auto suffix '' tags ' all-files ' to_end match unambiguous .Xdefaults unambiguous_cursor 11 unambiguous_positions 10 vared '' )
+_manpath=(/usr/local/man /usr/local/share/man /usr/share/man)
@@ -133 +175 @@
-func=/root/.functions/c.function
+func=/home/mih/.functions/c.function
@@ -149,0 +192,2 @@
+keyboard_delay=145
+keyboard_rate=45
@@ -157,0 +202 @@
+mount_partitions=tru
@@ -158,0 +204,2 @@
+nm_applet=true
+old_dir=/home/mih/data/video
@@ -159,0 +207 @@
+parallel='&'
@@ -163 +211 @@
-prompt='%{[0;38m%} [%{[0;34m%}%1~%{[0;38m%}] # '
+prompt='%{[0;38m%} [%{[0;34m%}%1~%{[0;38m%}] '
@@ -165,0 +214,3 @@
+root_window_color='#000'
+root_window_image=/home/mih/Pictures/wallpapers/offon.png
+root_window_image_prog=awsetbg
@@ -166,0 +218 @@
+service=tty6
@@ -168 +220,3 @@
-status=100
+status=0
+sys_brightness=2
+term_title=terminal
@@ -170,0 +225 @@
+use_gnome_settings_daemon=trueie
@@ -171,0 +227 @@
+vm_swappiness=100