@Zoresvit Actually, for what you did you could do a lot with just two simple regular expressions: one to clear the garbage at the end of lines after pasting ( :%s/x.*$/c ) and another to add commas between the values ( :s/[0-9]*/&,/gc ). There are probably better regexes, but that's a start.
excellent ! awesome video !
IcarusFlying 6 months ago
You gotta do this again with regular expressions. :)
AdamMonsen 10 months ago
@AdamMonsen Well yeah, but I'd have to learn all the regular expressions in stead of few shortcuts.
Zoresvit 10 months ago
@Zoresvit Actually, for what you did you could do a lot with just two simple regular expressions: one to clear the garbage at the end of lines after pasting ( :%s/x.*$/c ) and another to add commas between the values ( :s/[0-9]*/&,/gc ). There are probably better regexes, but that's a start.
AdamMonsen 10 months ago
@AdamMonsen That's great, thanks! :) I actually started learning some regexp rules so that will be useful. I still love VIM though ;)
Zoresvit 10 months ago
@Zoresvit those regular expressions are vim commands, meant to be used within Vim!
AdamMonsen 10 months ago
@AdamMonsen Yep, but you still have to know the regexp in order to use it ) And regular expressions are pretty much the same everywhere.
Zoresvit 10 months ago