Skip to content

easily add text before/after regex matches for the view only (virtual)

License

Notifications You must be signed in to change notification settings

dekirisu/easy-virtual-text.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Easy Virtual Text for Vim

A simple plugin to make adding virtual text a bit easier using a 2d array. The index in the 2nd dimension determines if the text is inserted `before`, `after` or to the very `right` of the window. The highlight group `VText` determines the text styling.

Tip

🦆 You can use it to add emojis too, if your terminal setup allows it

Example

let g:vtexts = [
    \["hello ","world"],
    \["🐳","emojis","🐪","🦀"],
    \["🙀","#\[.*]","😹"]
]
au ColorScheme * hi VText guifg=#ff0000

example

Installation

If you don’t have a plugin manager of choice I recommend vim-plug:

Plug 'dekirisu/easy-virtual-text.vim'

About

easily add text before/after regex matches for the view only (virtual)

Topics

Resources

License

Stars

Watchers

Forks