The default colors for comments (texts in /* */ or following // or #, …) in vi code highlighting are a little too dark. Ever wanted to make it more recognizable in SSH console?
Find and edit /etc/vim/vimrc with vi:
vi /etc/vim/vimrc
And add in this line:
colorscheme desert
Wherein desert is one of the available color schemes vim comes with. Now we will need to edit the actual color scheme file and change the highlighting colors:
/usr/share/vim/vimcurrent/colors/desert.vim
Change:
hi Comment ctermfg=darkcyan
To:
hi Comment ctermfg=blue
Save the change and exit. Run:
source /etc/vim/vimrc
And the changes will now take effect.
The default directory color of ls –color is also too dark, you can learn how to change the default directory color of ls –color.
Pingback: Use Shell Environment Variable LS_COLORS to Change Directory Listing Colors of ls –color
Pingback: Unmanaged Hosting Server Installation & Initial Configuration for Dummies
Thank you for this!!!! I’ve been searching everyone and haven’t found anything until I came across this.