[LINUX] How to change vim color scheme

Sometimes the colors are hard to see when opening a file with vim on a console such as Linux. In such a case, I will share a memo on how to change the color.

How to change after opening vim

(1) Set the colon (:) to the command mode and enter "color scheme". Type color and press the tab key to save it. ② Press the tab key and select the color scheme you want to use. For example, when changing the color scheme "elflord":

:colorscheme elflord

How to set a color scheme constantly

Setting the color scheme every time you open vim is a hassle. So set the default color scheme. The settings are written in a file called "vimrc".

vimrc is prepared as a hidden file under each user's home directory. So you can open it as follows.

vim ~/.vimrc

Then write and save as follows. (When using elford as the color scheme)

colorscheme elflord

vimrc is loaded as a setting when you open vim, so if you open vim, the color scheme will be replaced automatically.

Recommended Posts

How to change vim color scheme
How to change editor color in PyCharm
How to change Jupyter layout
How to change Python version
[Ansible] How to prevent forced change
Color scheme change when executing LS command
How to choose a Seaborn color palette
change vim settings
[Python] How to change the date format (display format)
How to use xml.etree.ElementTree
How to use Python-shell
How to use tf.data
How to use virtualenv
Scraping 2 How to scrape
How to use Seaboan
How to use image-match
How to install Python
How to use Pandas 2
How to read PyPI
How to use Virtualenv
How to update easy_install
How to use pytest_report_header
How to restart gunicorn
How to install python
How to debug selenium
How to use Bio.Phylo
How to read JSON
How to use SymPy
How to use x-means
How to use WikiExtractor.py
How to update Spyder
How to use IPython
How to use virtualenv
How to use Matplotlib
How to use iptables
How to use numpy
How to change static directory from default in Flask
How to use TokyoTechFes2015
How to use venv
How to use dictionary {}
How to use Pyenv
How to grow dotfiles
[Python] Summary of how to specify the color of the figure
How to use list []
[Work efficiency] How to change file names in Python
How to use python-kabusapi
"How to count Fukashigi"
How to install Nbextensions
How to use OptParse
How to add color bars in matplotlib bar plot
How to use return
How to install Prover9
How to use dotenv
How to operate NumPy
How to use pyenv-virtualenv
How to use Go.mod
How to use imutils
How to use import
How to change Apache's Document Root in Elastic Beanstalk's .ebextensions
[Python] How to change EXCEL file saved in xlsb to xlsx
[Learning memorandum] Introduction to vim