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

Substitute pattern with newline #1861

Closed
samsong8610 opened this issue Jun 22, 2017 · 5 comments
Closed

Substitute pattern with newline #1861

samsong8610 opened this issue Jun 22, 2017 · 5 comments
Labels
kind/bug status/works-with-neovim https://github.com/VSCodeVim/Vim#neovim-integration upstream/vscode

Comments

@samsong8610
Copy link

  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


Environment:

  • VSCode Version: 1.13.1
  • VsCodeVim Version: 0.8.6
  • OS: fedora 25 4.11.3-200.fc25.x86_64

What happened:

I have comma separated line like a,b,c. I want to split each char into a line using:

V
:s/,/\r/g

But the actual output is
a\rb\rc

It works in vim 8.0

What did you expect to happen:
Each part separated by comma is in a line. Expected output is:

a
b
c

How to reproduce it:

@xconverge
Copy link
Member

I think this is caused by microsoft/vscode#29238

@Chillee
Copy link
Member

Chillee commented Jun 22, 2017

@samsong8610 Is this with or without neovim integration?

@xconverge
Copy link
Member

xconverge commented Jun 22, 2017

Actually the command seems to work fine WITH neovim integration, it does not work correctly (as reported here) WITHOUT neovim integration

Neovim integration is just syncing the editor? How is it getting the output of the command and setting it in the current editor? I assume it is not using the same replace text call..

@samsong8610
Copy link
Author

@Chillee It is without neovim integration.

@Chillee
Copy link
Member

Chillee commented Jun 22, 2017

@xconverge Neovim integration just allows us to run the command within neovim. So if it works in Neovim it should work in VSCode (with a couple exceptions).

@samsong8610 I'd suggest adding the neovim integration if you want this feature. Although we'll keep this open and may fix it, things that work with neovim integration will tend to have lower priority.

@Chillee Chillee added the status/works-with-neovim https://github.com/VSCodeVim/Vim#neovim-integration label Jun 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug status/works-with-neovim https://github.com/VSCodeVim/Vim#neovim-integration upstream/vscode
Projects
None yet
Development

No branches or pull requests

3 participants