How to fix colors of opened file in vi editor ?

I'm using windows computer.  My source code is in Linux Server.  I telnet to Linux Server.
I invoke command vi filename.  File opens but it hard to see the text.  Please see attached.  Is there way to change color or background color of opened file?
unclear_color.PNG
LVL 1
naseeamAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
What telnet product are you using?

Many CMD based programs have the ability to change.  Click the icon in the top left of the window.  If it has Options or Properties, select it.

Usually you can change colors there.



If your vi is actually a shortcut to mini-vim, use normal vim.  from a prompt: vim some_file

once it opens:
:color elflord

see if colors change.  If so, you can choose a color scheme that suits you best.

There are usually several installed by default.  I started with the one closest to what I wanted then customized it.

There is a good blog on it here:
https://alvinalexander.com/linux/vi-vim-editor-color-scheme-colorscheme

If you don't want to bother changing it, there are plenty available out there:
http://vimcolors.com/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gerwin Jansen, EE MVETopic Advisor Commented:
You use telnet? That is not secure, I would use PuTTY instead.

Are you using vi or vim? You can check that with: ls -l $(which vi)
0
slightwv (䄆 Netminder) Commented:
I do agree that having telnet running on the destination is a pretty big security issue.  Even on a private WAN/LAN.

It happens every day:
https://en.wikipedia.org/wiki/Man-in-the-middle_attack

>>I would use PuTTY instead.

I use Cygwin with ssh.  I've not used PuTTY so I really cannot compare the two.  Just throwing it out as an alternative.
0
naseeamAuthor Commented:
>> What telnet product are you using?
How to find out?  My computer is running windows 10 Pro.  Form windows command prompt, I type telnet and my server name.  Then I log into Linux Server.

I'm using telnet because it's available in my workplace.

I'm using vim.
0
naseeamAuthor Commented:
Thank you for good answer and supplementary information.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.