LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-03-2017, 07:41 PM   #1
Tonio-
LQ Newbie
 
Registered: May 2017
Posts: 24

Rep: Reputation: Disabled
VIM customization - Colors not working as expected


Hi!

I'm setting up a new server, and I'm trying to install MiniVim (a SublimeText like .vimrc).
I have this .vimrc on two other computer (my personal laptop, and another server).

The problem is that it doesn't work well in my new server: the colors are not well applied.
Here a screenshot of what I get in my new server (on the left) and in the old one (on the right).

I feel that the color color application is not working well.
I tried many solution on the Internet (how to enable 256 colors in term instead of 8), but it still not working. And I really have no idea of why..

I'm not sure of which other informations could be useful to help you to diagnose the issue.

Thanks!
 
Old 05-03-2017, 11:26 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Hi Tonio-, and welcome to LQ.

This may seem like a bizarre suggestion but have you tried adjusting the brightness and contrast on the new server's screen? Or, alternatively, swapping over screens with the old server? This could be a screen problem.
 
Old 05-03-2017, 11:43 PM   #3
Tonio-
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi Hydrurga, thanks for the answer!

The screenshot I sent was from the same computer over ssh (and so the same screen), so I think it's not linked.
 
Old 05-03-2017, 11:49 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Quote:
Originally Posted by Tonio- View Post
Hi Hydrurga, thanks for the answer!

The screenshot I sent was from the same computer over ssh (and so the same screen), so I think it's not linked.
Ah, well, there goes that theory.

How do the two servers differ (operating system-wise etc)?

Have you tried copying the old server's MiniVim config file over to the new one?
 
Old 05-04-2017, 12:01 AM   #5
Tonio-
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
The two systems are Debian Jessie.
The old one is a VPS, so I don't have details about it.
The new one is a Proxmox's container that I manage.

I tried to copy the conf file, same issue (the screen is with the same conf file).
That's why I'm thinking about an issue with the terminal / colors.

Thanks again for your help!
 
Old 05-04-2017, 01:37 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,264
Blog Entries: 10

Rep: Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172Reputation: 5172
Quote:
Originally Posted by Tonio- View Post
Here a screenshot of what I get in my new server (on the left) and in the old one (on the right).
i suppose the output on the right is the desired output.
it looks to me like the colors are ok, and it's all up to bold attributes.

sorry i can't be more specific.
 
Old 05-04-2017, 10:24 AM   #7
perfectsecurity
LQ Newbie
 
Registered: May 2017
Posts: 21

Rep: Reputation: Disabled
Put this in your .vimrc set t_Co=256 http://vim.wikia.com/wiki/256_colors_in_vim

Last edited by perfectsecurity; 05-04-2017 at 02:12 PM.
 
Old 05-04-2017, 10:55 AM   #8
Tonio-
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
@ondoho, yes the right is the target. I agree with you, there is a bold issue, but the colors too are not the good ones.

@perfectsecurity this line is already in the .vimrc file, and if I type it in vim, it doesn't change anything
 
Old 05-11-2017, 08:40 PM   #9
Tonio-
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
I tried to find a solution to this problem, but I'm still stuck.

I verified all the config between all my installation, they are the same. I checked the terminal used: same too.
I'm really confused on this. Does anyone else have an idea ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Vim colors slack_ Slackware 6 09-04-2014 10:10 PM
Can't get vim colors working keyboard1973 Linux - Newbie 8 07-03-2008 11:29 AM
Vim colors not working as root but okay in normal logins robinhood1995 Linux - Software 5 07-01-2007 07:31 PM
vim colors AndeAnderson Linux - Software 3 03-09-2007 06:41 AM
vim colors Erik Thorsson Debian 1 02-09-2005 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration