Skip to content

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