lloeki / ex-mode

Ex mode for Atom
MIT License
169 stars 59 forks source link

Replacing backslash #198

Open deafwood opened 7 years ago

deafwood commented 7 years ago

I frequently run the following command in vi: 'a,'bs/^/\\/\\// to insert a comment notation "//" at the beginning of a block of lines but am unable to do this. I get an error that says "Command error: trailing characters".

Please advise if there is a work around, thanks!

hultberg commented 7 years ago

@deafwood Exactly how do you type the command in ex-mode command line, like this? %s/'a,'bs/^/\\/\\//

deafwood commented 7 years ago

After marking the first ('a) and last ('b) lines, I enter the following command: 'a,'bs/^/\\/\\//

socketbox commented 6 years ago

Something similar that produces the same error, but works in vim (v7.4):

:%s/:\/\/bar/:\/\/foo.bar/g

baccione commented 6 years ago

Dear all, I also have the same problem. For example:

:1,2s/^/\/\//

puts // at the beginning of lines 1 and 2 in vim.

In atom with Ex-mode, this throws the error: "Command error. Trailing characters"