How to configure vi vim display colors in docker
This article mainly introduces how to configure the vi vim display color in docker, which has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Vi vim display color configuration in docker
Usually VIM color scheme files are stored in "/ usr/share/vim/vim74/colors", the specific location may be slightly different.
For example, the contents of my directory are: (where ".vim" is the color scheme)
Blue.vim default.vim desert.vim evening.vim koehler.vim morning.vim pablo.vim README.txt shine.vim torte.vimdarkblue.vim delek.vim elflord.vim industry.vim murphy.vim peachpuff.vim ron.vim slate.vim zellner.vim
Under the user home directory, create a new ".vimrc" file as follows:
# the number of columns occupied by a tab key. The linux kernel code recommends that each tab occupy the number of columns actually occupied by 8 columns of set tabstop=4# when typing the tab key. Set softtabstop=4# shiftwidth is used to set the width of Tab key set shiftwidth=4# expandtab is used to convert Tab to blank space set expandtab# is set to automatically indent set autoindentset cindentset cinoptions= {0rec 1srecorder t0jinlich 2je p2s, (03s record.5s, > 1srecorder 1srecorder 1s# nu to display the line number set nu# ts to set the number of spaces represented by the tab key set ts=4# colorscheme is used to select the color scheme colorscheme desert
Or it can be in the overall configuration: all users are valid
Vim / etc/vimrc
Add the following line to the last line of the file.
Colorscheme desert
Thank you for reading this article carefully. I hope the article "how to configure vi vim display colors in docker" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!