Thay thế theo một dải hàng:
:startLineNumber, endLineNumber s/<search_pattern>/<replace_pattern>/g
Ví dụ thay thế Computing bằng Semiconductor từ dòng 12 tới dòng 25:
:12, 25 s/Computing/Semiconductor/g
Ủng hộ tôi
Thay thế theo một dải hàng:
:startLineNumber, endLineNumber s/<search_pattern>/<replace_pattern>/g
Ví dụ thay thế Computing bằng Semiconductor từ dòng 12 tới dòng 25:
:12, 25 s/Computing/Semiconductor/g