How do I change the color of the selected code in Vim?
There are three selection modes, Visual Line
mode or Visual Block
mode, and selecting wi
How to set the color of the selected code in vi?
I'm using VIM 7.3 on Ubuntu and this does it for me within the editor:
:syntax on
:hi Visual term=reverse cterm=reverse guibg=Grey
I'm using a colorscheme defined in the /home/youruser/.vim/colors/mycolorscheme.vim file. I set the command there and the changes take effect when vim starts.
syntax on
hi Visual term=reverse cterm=reverse guibg=Grey