Closed sevehub closed 1 year ago
This works well when I need to highlight a single word with a predefined color. nnoremap <silent><leader>h1 :8 Hi+<CR>
nnoremap <silent><leader>h1 :8 Hi+<CR>
How can I have a similar remap for a range in visual mode? I've tried: xnoremap <silent><leader>h1 :8 Hi+x<CR> but I get "invalid range" error.
xnoremap <silent><leader>h1 :8 Hi+x<CR>
Any ideas?
Found it. xnoremap <silent><leader>h1 <esc>:8 Hi+x<CR>
xnoremap <silent><leader>h1 <esc>:8 Hi+x<CR>
I close the issue.
Awesome! 👍
This works well when I need to highlight a single word with a predefined color.
nnoremap <silent><leader>h1 :8 Hi+<CR>
How can I have a similar remap for a range in visual mode? I've tried:
xnoremap <silent><leader>h1 :8 Hi+x<CR>
but I get "invalid range" error.Any ideas?