vim:aucmd: Support multi-line selection highlight

This commit is contained in:
2024-03-24 16:12:36 +01:00
parent 4b8ab18392
commit bfccb0f089

View File

@@ -97,7 +97,7 @@ function! HighlightVisualSel()
let w:visual_match_ids += [[
\ matchadd(
\ 'CursorColumn',
\ '\V' . escape(@", '\'),
\ '\V' . substitute(escape(@", '\'), '\n', '\\n', 'g'),
\ -1,
\ -1,
\ {'window': l:win}),