Skip to content

Highlight colors

mg979 edited this page Aug 28, 2020 · 6 revisions

VM defaults

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)

Matches highlight

Imgur

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


Selecting a theme

There are some themes ready for use, these are samples:

  • codedark
    • Imgur
  • iceblue
    • Imgur
  • purplegray
    • Imgur
  • spacegray
    • Imgur
  • ocean
    • Imgur
  • nord
    • Imgur
  • neon
    • Imgur
  • paper
    • Imgur

There are also some for light color schemes, but they could be better.