• Skip to secondary menu
  • Skip to main content
  • Skip to primary sidebar

Python and R Tips

Learn Data Science with Python and R

  • Home
  • Python
  • Pandas
    • Pandas 101
  • tidyverse
    • tidyverse 101
  • R
  • Linux
  • Conferences
  • Python Books
  • About
    • Privacy Policy
You are here: Home / Vim / How to Make Vim More Colorful? Hint: Use Color Scheme

How to Make Vim More Colorful? Hint: Use Color Scheme

July 30, 2011 by cmdlinetips

Vim Color Scheme TipsAre you not satisfied with the colors you have on Vim? Vim has loads of options to make your Vim editing colorful and cheerful experience.  The basic command in Vim to switch on colors or switch off colors is “syntax”.  Just to try and see how the syntax command changes the colors on your Vim screen, open a file containing any program and type (when you are in command mode),

:syntax on

You will immediately see how Vim automatically identifies the syntaxes of the programming language and highlights them in different colors. To make this a permanent, add the line “syntax on”  to your “.vimrc” file located in your home directory.

Vim Color Scheme

Although your Vim screen may look good, often you might notice that colors of some syntaxes make it difficult to read depending on your terminal’s background color. This issue can be solved by using Vim’s available color schemes.

By default, Vim may offer a variety of colorschemes like evening, elflord, default. desert, koehler, murphy, morning, peachpuff,pablo, ron, slate, shine, torte, and zellner. These colorschemes offer rich colorful Vim experience. The way to try one of these colorschemes is to open a file using Vim and type (in command mode)

:colorscheme desert

If you want to try more than one colorscheme, type

:colorscheme, a space and use tab to go through each colorscheme to choose the one you like.

If you have a black/dark background, the colorscheme “desert” is probably the best chance to see all your synatxes easily.

More Vim Color Schemes

If you are an adventurous type and did not like any of these colorschemes offered by Vim, don’t worry. There are more colorschemes available to you. Visit Vim’s color themes page and download the one you like.


As you can see, there are more than 500 Vim color schemes created by users. Don’t worry, You don’t have to manually try each color scheme, Google Code is there to help you. Google Code has a colorscheme test page  and lists how the over 400 color schemes will look like for C, HTML, Java, perl and LaTex files. Once you like a scheme download  the color scheme fle and move it to the directory “~./vim/colors” and add the line

colorscheme yourfavorite

in your .vimrc file. Remember that for the color scheme to work you also need to have “syntax on”.

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X

Related posts:

Default Thumbnail10 Easy Bash Shell Aliases Default Thumbnail11 Ways to Use find Command in Linux to Search Files/Directory How to Get a Specific Line or Lines From a Big File? Hint: Use One Liner AWK Default ThumbnailHow to Move Around using Vim on Terminal?

Filed Under: Vim, Vim Color Scheme, Vim Color Syntax, Vim Tips Tagged With: Linux Tips, Vim, Vim Color Scheme Tips, Vim Color Schemes, Vim Color Syntax

Primary Sidebar

Subscribe to Python and R Tips and Learn Data Science

Learn Pandas in Python and Tidyverse in R

Tags

Altair Basic NumPy Book Review Data Science Data Science Books Data Science Resources Data Science Roundup Data Visualization Dimensionality Reduction Dropbox Dropbox Free Space Dropbox Tips Emacs Emacs Tips ggplot2 Linux Commands Linux Tips Mac Os X Tips Maximum Likelihood Estimation in R MLE in R NumPy Pandas Pandas 101 Pandas Dataframe Pandas Data Frame pandas groupby() Pandas select columns Pandas select_dtypes Python Python 3 Python Boxplot Python Tips R rstats R Tips Seaborn Seaborn Boxplot Seaborn Catplot Shell Scripting Sparse Matrix in Python tidy evaluation tidyverse tidyverse 101 Vim Vim Tips

RSS RSS

  • How to convert row names to a column in Pandas
  • How to resize an image with PyTorch
  • Fashion-MNIST data from PyTorch
  • Pandas case_when() with multiple examples
  • An Introduction to Statistical Learning: with Applications in Python Is Here
  • 10 Tips to customize ggplot2 title text
  • 8 Plot types with Matplotlib in Python
  • PCA on S&P 500 Stock Return Data
  • Linear Regression with Matrix Decomposition Methods
  • Numpy’s random choice() function

Copyright © 2025 · Lifestyle Pro on Genesis Framework · WordPress · Log in

Go to mobile version