0

As mentioned above I want to adjust the Vim color scheme in the terminal of my macOS Tahoe 26.1 system so that it resembles the color display scheme in Linux.

Also i'm using a MacBook Air M4.

4
  • Welcome to Ask Different. What version of vim do you prefer on which Linux distro? Commented Nov 17 at 13:20
  • Thank you very much for your reply. The Vim version preinstalled with my current macOS Tahoe is 9.1.1752, and its color scheme is black and white. I hope to adjust it to the Vim color scheme used in Red Hat or CentOS. Commented Nov 17 at 13:43
  • Some good details there. I was wondering if you could tell us the RH / Cent version of vim and which color scheme you want to match from those OS. Commented Nov 17 at 14:21
  • Thank you very much for your reply. I have already set up the color scheme I wanted. Thank you again for your response, but I no longer need further assistance. Commented Nov 18 at 4:33

1 Answer 1

1

If the vim versions are compatible (likely), then you should be able to get the effect you want by copying the .vimrc file from your home directory on a Linux host. You can also set the color scheme for a running session by entering the :colorscheme command followed by the name of the desired color scheme. The built-in schemes are in the directory /usr/share/vim/vim91/colors. You can't modify that directory, but you can add more schemes in ~/.vim/colors. To enable syntax highlighting, add the directive syntax on to the .vimrc file.

See, for example, Color Schemes in Vim: How to Change and Use Them (linuxhandbook.com).

1
  • Thank you very much for your reply! By combining the method you provided with the website information, I have successfully adjusted the Vim color scheme to the one I wanted. I would like to express my sincere gratitude to you once again!!! Commented Nov 18 at 4:31

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.