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

search and replace #199

Open
ghost opened this issue Oct 5, 2017 · 2 comments
Open

search and replace #199

ghost opened this issue Oct 5, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 5, 2017

hi, I am using this package since a couple of days so I don't even know if I need to open an issue for this, but I googled and couldn't find a solution.

I am trying to search and replace some strings in a range of lines with the following command:

:13,38s/h_.* = (.*)/Helper.bookHistogram \1/
but when I hit enter nothing happens. When I open my piece of code with vim on the terminal, this of course behaves as expected.

Is there anything I should enable in the settings (I took a look, but didn't find anything trivially solving it)?

@justinjhendrick
Copy link

justinjhendrick commented Dec 6, 2017

Another example of broken search and replace:

Bug Report: Can't search for . and replace with /

Repro steps:
paste this line into atom:
"java.lang.String"

put your cursor on that line and input this command
:s/\./\//g

Expected: (this is what vim 7.4 does)
"java/lang/String"

Actual:
"javaglang.String"

vim-mode-plus version: 1.22.0
ex-mode version: 0.18.0
$ atom --version
Atom : 1.22.1
Electron: 1.6.15
Chrome : 56.0.2924.87
Node : 7.4.0
Mac version: 10.12.6

@dylanpjx
Copy link

Another example:

        new_wave[length-1] = int(len(wave)[length-2] * 0.2 +
                                wave[len(wave)-1] * 0.6)

:%s/len(wave)/length/g doesn't work

Expected output:

        new_wave[length-1] = int(wave[length-2] * 0.2 +
                                wave[length-1] * 0.6)

Actual output:
No change from top snippet

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

2 participants