Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xnoremap S <Plug>VgSurround gets overridden #320

Open
mawkler opened this issue Jan 16, 2021 · 0 comments
Open

xnoremap S <Plug>VgSurround gets overridden #320

mawkler opened this issue Jan 16, 2021 · 0 comments

Comments

@mawkler
Copy link

mawkler commented Jan 16, 2021

xmap for <Plug>VgSurround seems to get overridden by <Plug>VSurround. For some reason this seems to only happen in Neovim, because when I do the same thing in Vim I get the expected behaviour.

To reproduce:

  1. Use the following init.vim

    call plug#begin('~/.vim/bundle')
    Plug 'tpope/vim-surround'
    call plug#end()
    
    xnoremap S <Plug>VgSurround
  2. Launch Neovim

  3. :xmap S outputs x S <Plug>VSurround (note that it's not VgSurround as expected)

  4. Using the same config for Vim and doing :xmap S outputs x S * <Plug>VgSurround.

I can xmap other commands than S to <Plug>VgSurround fine, so it seems that it is S specifically that is getting overridden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant