Skip to content

operator-surround-replace kills indent in visual mode #21

@Konfekt

Description

@Konfekt

Let .vimrc contain

nnoremap <script> <SID>(hvgu) ^vg_
nmap <silent> css <SID>(hvgu)<Plug>(operator-surround-replace)

and let test.vim consist of the single line

  (nmap csg)

Expected: hitting cssB gives

  {nmap csg}

Result:

{nmap csg}

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