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

selected range subsititution forward slash #1085

Open
mccart opened this issue Dec 6, 2016 · 0 comments
Open

selected range subsititution forward slash #1085

mccart opened this issue Dec 6, 2016 · 0 comments

Comments

@mccart
Copy link

mccart commented Dec 6, 2016

seems forward slash in command substitution is "hardcoded"...

For example, cannot select range of lines and insert // in column 1 with this
: '<,'>s/^/\/\//g

I've determine that range '<,'> works, start of line ^ works but quoting of forward slash does not.
Seems that / gets parses as delimiter no matter what... perhaps need to allow it be \ quoted?

For substitution, Vi/Vim allows / to be a different delimiter, for example
'<,'>s.^.//.g
'<,'>s$^$//$g

That doesn't work here either..

Other minor issue noted is ...
In VI/Vim '<,'>s/^/\/\// would do all lines, whereas here only first occurrence - seems range is selected as a string instead of array of string lines. Here, g is required here to do all lines.

Keep up the great Vintageous! :)

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