We can change the background and foreground colors in Vim editor using the colorscheme.
Let's say you have opened a file using Vim and now you want to change the color scheme, you can simply type :colorscheme followed by the name of the color scheme.
Example:
:colorscheme desert

List of Color Schemes: Vim
Colorscheme Name | Background Color | Foreground Color |
---|---|---|
desert | Dark Gray | Light Orange |
gruvbox | Dark Brown | Light Beige |
solarized | Dark Blue-Green | Light Blue-Gray |
molokai | Dark Charcoal | Light Gray |
nord | Dark Blue-Gray | Light Gray-Blue |
dracula | Dark Purple-Blue | Light Gray |
onedark | Dark Blue-Gray | Light Gray |
monokai | Dark Green-Gray | Light Gray |
jellybeans | Dark Purple | Light Beige |
iceberg | Dark Blue-Gray | Light Blue |
Adding the colorscheme in .vimrc:
Open the .vimrc file using the vim editor and add the following line.
vim ~/.vimrc
colorscheme desert
Save and Quit.
-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to Linux,
- Rename a directory using Linux/Unix command
- ls command to list only directories
- How to Restart or Reload Nginx Server Service on Linux
- 3 ways to clear screen on Linux Terminal
- ls command: sort files by name alphabetically A-Z or Z-A [Linux/Unix/macOS/Bash]
- Copy entire directory using Terminal Command [Linux, Mac, Bash]
- Fix: sudo: unable to open Read-only file system
- Create Hidden File or Directory using Shell Command
- Command to know the installed Debian version?
- The Date Command and its usage [Linux - Unix - macOS]
- Fix - bash: man: command not found
- How to tar.gz a directory or folder Command
- How to Display content of a file in Terminal Screen?
- How to change bash terminal prompt string and color
- Sort ls command by last modified date and time
- Execute .bin and .run file Ubuntu Linux
- zsh hello world example
- How to check uptime of Linux/Unix/macOS system/server using console command?
- [Fix] Linux - bash: useradd: command not found
- Command to check Last Login or Reboot History of Users and TTYs
- How to install and Configure sar sysstat tools in Ubuntu Linux
- How to use SCP Command to Copy Directory
- Linux Remove or Delete Files and Directories using Terminal Commands
- How to connect to SSH port other than default 22
- Install OpenSSL on Linux/Ubuntu
More Posts:
- How to Enable or Disable Dark Mode on macOS Ventura 13 - MacOS
- How to Compare two Files in Bash Shell - Bash
- ChatGPT Outage: Hmm...something seems to have gone wrong. Maybe try me again in a little bit. - HowTos
- What is BTS? What is BTS A.R.M.Y? What is its meaning? - BTS
- Mac Terminal Find Command History - MacOS
- [fix] URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs) IntelliJ - Java
- [Tutorial] Install Python on Visual Studio Code (VS Code) - Python
- Setting up RSS feeds notifications within Outlook - HowTos