Skip to content

Visual mode repeat #48

Open
Open
@wincent

Description

@wincent

I was trying to make these mappings repeatable:

xnoremap < <gv
xnoremap > >gv

My initial stab at this was:

xnoremap <silent> <Plug>DedentAndReselect <gv
      \ :silent! call repeat#set("\<Plug>DedentAndReselect")<CR>
xmap < <Plug>DedentAndReselect

Alas, entering command mode in order to invoke repeat#set knocks us out of visual mode, undoing the desired effect of the gv.

I tried a number of different hacky workarounds in an attempt to get this to work, but without success.

Does this seem like something that should be possible with vim-repeat?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions