Friday, October 28, 2016

Delete lines out of selection and delete search pattern


Use visual mode to select

than

:

Ctrl + u     - to clean command line

than

:v/\%V/d
 
 
Example 
:v/\%V/d|%s/orch://g|%s/?//g|%s/<!--Optional:-->//g 
 
 
 
Delete search pattern
 
:g/<pattern>/d

No comments:

Blog Archive