Registered Member
|
I compared the two files using diff and it said they are different . I tried to copy the remote file on my local pc but colors didn't change.
|
Administrator
|
Hmm. Unfortunate - i'm out of ideas as to why the colour schemes would differ as there is no reason for them to do so. Have you checked with other terminal emulators on your computer to see if that render correctly?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
|
Administrator
|
Try running another terminal application such as XTerm and see if the colours are displayed "correctly" there. If they aren't - then it is a Vim / terminfo issue, as the colour schemes being sent are wrong. If they are displayed correctly, it is a bug in Konsole.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I have just tried under xterm and the colours aren't displayed "correctly"
edit: I have a new trail : when i call vim using sudo, colors are good |
Administrator
|
What do you get when running
in Vim? Posting your .vimrc would also be helpful.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Registered Member
|
I get t_Co=256
My .vimrc file:
|
Administrator
|
Do the vimrc files from your computer differ with those on the university system, and those used by root on your computer?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Gnome terminal uses pastel colors for default set of common colors (aka Tango theme). Konsole uses rougher colors by default. I also like Gnome terminal choice of default color theme. You can reassign colors in Konsole as well. See Edit Current Profile > Appearance. You can modify colors by hand there (making a new theme). Or use this:
Place it in file: $HOME/.kde/share/apps/konsole/Tango.colorscheme and restart Konsole. Then go to Edit Current Profile > Appearance and chose Tango as the color theme. All this helps for default 16 colors though, to make them a bit more easy on the eyes. To access 256 colors in various applications, I simply set TERM=xterm-256color and chose 256 color themes in vim or Midnight Commander for example. |
Registered Member
|
@bcooksley : The .vimrc are the same on the university system and on my own, because i want to have the same settings on the two platforms . But how can i know what .vimrc is uses by root ?
@shmerl : I have put the Tango.colorscheme in the konsole directory and i have chosen it as the konsole colorscheme but the problems with vim colors still appears |
Registered Member
|
The scheme I gave you can improve general look of Konsole, but vim assigns color schemes on its own, so it doesn't directly affect it.
In your .vimrc, I noticed that you are using background=dark. I think it's not necessary for vim schemes which are already designed to be dark, and it actually can make it look worse. Try removing that setting.
I guess that would be /root/.vimrc if it exists. If it doesn't, vim will start with default settings as defined in /etc/vim/vimrc |
Registered Member
|
That didn't change anything. I found the /etc/vim/vimrc file (/root/.vimrc file doesn't exist) but I haven't notice something special into . I had an idea : I have opened vim using sudo, so my colors were good, and I tried to type the :source ~/.vimrc command, to load my normal .vimrc. The colors didn't change, they remained good. I think we can conclude it is a problem from environnement variables , can't we ? |
Administrator
|
When running commands using "sudo" numerous environment variables are purged (as they represent a security risk).
Please provide the output of "export".
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
The result of export :
|
Administrator
|
Unfortunately there isn't anything immediately obvious there. You might need to contact a person more experienced in how Vim determines which colours/themes to use to determine why it is using different colours here i'm afraid.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]