Open
Description
Feature category
- Check(Type 'x') any that Applicable item:
- Vim
- Vim plugin
See: https://vimhelp.org/pattern.txt.html#%2F%5C%25V
\V
is already supported I guess? \%V
would be very useful when working with selection-scope substitution and search, completely mouse-free.
For example
" search inside selection only
xnoremap / <C-\><C-n>`</\%V
xnoremap ? <C-\><C-n>`>?\%V
" replace in selection only
xnoremap <leader>r <C-\><C-n>`>:%s/\%V//g<Left><Left><Left>
xnoremap <leader>r <C-\><C-n>`>:%s/^\%V//g<Left><Left><Left> " replace start of line
Metadata
Metadata
Assignees
Labels
No labels