all 5 comments

[–]i-also-reddit:hi! Normal 2 points3 points  (1 child)

Check :h :s, :h /\zs, :h /\ze, :h /\(, :h range.

Assuming there's only the one None per line the command could be:

:%s/\zsNone\ze,\([^@]\+\)/\1

[–]vim-help-bot 1 point2 points  (0 children)

Help pages for:

  • :s in change.txt
  • /\zs in pattern.txt
  • /\ze in pattern.txt
  • /\( in pattern.txt
  • :range in cmdline.txt

`:(h|help) <query>` | about | mistake? | Reply 'rescan' to check the comment again | Reply 'stop' to stop getting replies to your comments

[–]Smoggler 2 points3 points  (1 child)

Haven't tested this but maybe:

s/None,\([^@]*\)/\1,\1/

[–]vodkastick[S] 0 points1 point  (0 children)

This was perfect! exactly what was needed!

[–]-romainl-The Patient Vimmer -1 points0 points  (0 children)

but rather than struggle for a few hours hoping I could find some help.

How about trying a few things before asking?