热度 1| ||
批量替换pattern
:%s/original_pattern/new_patter/g 将original_pattern替换成new_pattern
:11,12s/original_pattern/new_patter/g 将11~12行的original_pattern替换成new_pattern
批量删除pattern对应行
:g/pattern/g 将包含pattern的行删除
:11,12g/pattern/g 将11~12行,包含pattern的行删除