Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dekirisu/easy-virtual-text.vim
easily add text before/after regex matches for the view only (virtual)
https://github.com/dekirisu/easy-virtual-text.vim
vim vim-plugin virtual-text
Last synced: 11 days ago
JSON representation
easily add text before/after regex matches for the view only (virtual)
- Host: GitHub
- URL: https://github.com/dekirisu/easy-virtual-text.vim
- Owner: dekirisu
- License: mit
- Created: 2024-07-31T17:49:49.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-31T18:09:40.000Z (4 months ago)
- Last Synced: 2024-10-18T08:43:24.125Z (about 1 month ago)
- Topics: vim, vim-plugin, virtual-text
- Language: Vim Script
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
```viml
let g:vtexts = [
\["hello ","world"],
\["π³","emojis","πͺ","π¦"],
\["π","#\[.*]","πΉ"]
]
au ColorScheme * hi VText guifg=#ff0000
```
![example](https://github.com/user-attachments/assets/05a4ce5a-781d-478c-918a-53e31d070296)## Installation
If you donβt have a plugin manager of choice I recommend [vim-plug](https://github.com/junegunn/vim-plug):
```viml
Plug 'dekirisu/easy-virtual-text.vim'
```