-
Notifications
You must be signed in to change notification settings - Fork 84
Highlight colors
mg979 edited this page Aug 28, 2020
·
6 revisions
VM default theme is based on your color scheme, if you don't like it you can:
- select a theme
- relink highlight groups
You can load a theme by default by defining:
let g:VM_theme = 'your_chosen_theme'
If you want to change theme, run:
:VMTheme
To relink VM highlight groups:
let g:VM_Mono_hl = 'DiffText'
let g:VM_Extend_hl = 'DiffAdd'
let g:VM_Cursor_hl = 'Visual'
let g:VM_Insert_hl = 'DiffChange'
g:VM_Mono_hl |
highlight in cursor mode |
g:VM_Extend_hl |
highlight in extend mode (the selections) |
g:VM_Cursor_hl |
highlight in extend mode (the cursors) |
g:VM_Insert_hl |
highlight in insert mode (the virtual cursors) |
VM uses the search register (/
) to find matches. While VM is active,
hlsearch
is turned on, and it shows the current VM patterns, but the
highlight of these not-yet selected patterns is the regular Search
highlight.
To have a fancier highlight system, set:
let g:VM_highlight_matches = 'value'
Where 'value' is either:
underline
red
- a full highlight command (read
help :hi
), e.g.:let g:VM_highlight_matches = 'hi! Search ctermfg=228 cterm=underline' let g:VM_highlight_matches = 'hi! link Search PmenuSel'
- an empty string if you want the normal
Search
highlight
Default is underline
There are some themes ready for use, these are samples:
- codedark
- iceblue
- purplegray
- spacegray
- ocean
- nord
- neon
- paper
There are also some for light color schemes, but they could be better.