Vim Regex Capture Groups [bau -> byau : ceu -> cyeu]

前端 未结 4 2031
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 07:01

I have a list of words:

bau
ceu
diu
fou
gau

I want to turn that list into:

byau
cyeu
dyiu
fyou
gyau

I uns

4条回答
  •  感动是毒
    2020-12-04 07:29

    You can also use this pattern which is shorter:

    :%s/^./&y
    
    • %s applies the pattern to the whole file.
    • ^. matches the first character of the line.
    • &y adds the y after the pattern.

提交回复
热议问题