In ex-mode I can use :g/^$/d for the whole file. How to do it for a visual selected part of the file?
In ex-mode I can use :g/^$/d for the whole file. How to do it
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Select text visually, press : to enter command mode, and use the same command or use the
'<and'>markers. E.g.:'<,'><your command here>.For your particular use case, the final command would be: