我试图用vim regex擦除冒号后的所有内容:
以及空格或换行符。以下是我正在使用的文字。Vim regex擦除冒号和空格或换行符之间的所有内容
ablatives ablative:ablative_A s:+PL
abounded abound:abound_V ed:+PAST
abrogate abrogate:abrogate_V
abusing ab:ab_p us:use_V ing:+PCP1
accents' accent:accent_N s:+PL ':+GEN
accorded accord:accord_V ed:+PAST
所以我想从这个得到如下:
ablatives ablative s
abounded abound ed
abrogate abrogate
abusing ab us ing
accents' accent s '
accorded accord ed
我几乎失去了在这一个,但我没有尝试下面的语句:
:s/\:.//g
我我试图用它来获得至少一种我需要的模式。