range-highlight.nvim
An extremely lightweight plugin (~ 60loc) that hightlights ranges you have entered in commandline.
Features
-
Single line range highlight (
:10
) -
Absolute range highlight (
:20,15
) -
Semicolon separated range highlight (
:20;15
) -
Backward range highlight (
:20,15
) -
Shorthand range highlight (
:,15
) -
Relative range highlight (
:+5,-2
) -
Multiple relative range highlight (
:10+5--,5+3-2
) -
Mark range highlight (
:'a,20
) -
Dot range highlight (
:.,-2
,:5,.
) -
Last line and whole file highlight (
:4,$
,:%
) -
Pattern range highlight (
:/hello/d
) (WIP)
Installation
paq.nvim
paq{'winston0410/range-highlight.nvim'}
require'range-highlight'.setup{}
Configuration
This is the default configuration. It is likely that you don't need to change anything.
require("range-highlight").setup {
highlight = "Visual"
}
Acknowledgement
Thank you folks from gitters for helping me out with this plugin.