8000 [Feature Request] Support `%V` atom · Issue #3144 · VsVim/VsVim · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Feature Request] Support %V atom #3144
Open
@sharpchen

Description

@sharpchen

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0