-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Wrong :g command syntax #179
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The global command
:g/^$/,/./-1j
seems to be wrong since Vim >= 9.0 throwswhen I run this example given section Reduce Multiple Empty Lines to One Empty Line. Surprisingly the commands works nevertheless.
There must be another way to specify ranges in the cmd for :g.
A valid alternative to reduce multiple empty lines to only one empty line is
:g/^$/v/./j
The text was updated successfully, but these errors were encountered: