我的数据看起来像这样:
母音,vowel 備考,note,remarks,NB 基本形,fundamental form,basic form,basic pattern,basic model,basic type,prototype 受身,the defensive,passive attitude,passivity,passiveness,the passive,passive voice,ukemi (the art of falling safely) 受身形,passive form 否定,negation,denial,repudiation,NOT operation 不規則,irregularity,unsteadiness,disorderly
如何替换除每行之外的每个事件?
我希望在每一行上替换除第一次出现之外的每一行.
结果:
母音,noteREPLACED remarksREPLACED NB 基本形,REPLACEDfundamental formREPLACED basic formREPLACED basic patternREPLACED basic modelREPLACED basic typeREPLACED prototype 受身,REPLACEDthe defensiveREPLACED passive attitudeREPLACED passivityREPLACED passivenessREPLACED the passiveREPLACED passive voiceREPLACED ukemi (the art of falling safely) 受身形,passive voiceREPLACED passive form 否定,negationREPLACED denialREPLACED repudiationREPLACED NOT operation 不規則,irregularityREPLACED unsteadinessREPLACED disorderly
你可以使用正面的lookbehind:
:%s/\m\%(,.*\)\@<=,/REPLACED/g
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。