Skip to content

Surround Input mode (ys in Normal or S in Visual) doesn't recognize dollar sign #8895

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

Open
alonso-herreros opened this issue Feb 20, 2024 · 0 comments · May be fixed by #9525
Open

Surround Input mode (ys in Normal or S in Visual) doesn't recognize dollar sign #8895

alonso-herreros opened this issue Feb 20, 2024 · 0 comments · May be fixed by #9525

Comments

@alonso-herreros
Copy link

Description

When trying to surround a piece of text in dollar signs (such as starting a math environment for a markdown file) the dollar sign isn't recognized and instead snaps me back into Normal mode. The Surround plugin is enabled, and this works for other characters (", ', (), etc. This is supposed to work in Vim (as suggested by StackOverflow posts)

To Reproduce

Option A (normal mode)

    1. Enter an editor in normal mode
    1. Type ys[motion]$ with any motion (for example, ysiw$)
    1. Watch as nothing happens (except maybe the cursor moving)

Option B (visual mode)

    1. Enter an editor in visual mode (using v, V or <C-v> from normal mode)
    1. Make a selection (for example iw)
    1. Type S to enter Surround Input mode
    1. Type $
    1. Watch as you are put in normal mode with no dollar signs anywhere you expected

Expected behavior

The dollar signs should appear around the selected text thanks to the Surround plugin, as it happens with other characters.

Environment

  • VsCodeVim version: 1.27.2
  • VSCode version: 1.86.1
  • OS: Windows 11 Home x64 23H2, build 22631.3155
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

Successfully merging a pull request may close this issue.

1 participant