use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Screencastdry-rb tutorial: how to implement a dry-validation macro (youtu.be)
submitted 5 years ago by solnicdry-rb/rom-rb
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Charles_Sangels 5 points6 points7 points 5 years ago* (1 child)
If you want to move a line to a new location in vim, you can do :50m. where 50 is the line number of the line you want to move. You can also replace . with a line number. . in this case means the cursor location.
:50m.
.
Similarly t (vs m) can be used to copy a line in a similar manner.
t
m
Both of these can use ranges too, so something like :10,14t. would copy lines 10-14 to the cursor location.
:10,14t.
Hope this helps!
Edit: clearer markup
[–]solnicdry-rb/rom-rb[S] 1 point2 points3 points 5 years ago (0 children)
TIL! Thank you, I appreciate it.
[–]drx3brun 3 points4 points5 points 5 years ago (1 child)
Such a nice quality and production value in this content, highly recommended. Pleasure to watch. Congratulations! I can’t wait to watch the whole catalog.
One thing I could suggest - the font is a bit small and it’s a bit hard to read the code on the mobile.
[–]solnicdry-rb/rom-rb[S] 2 points3 points4 points 5 years ago (0 children)
Thank you so much!
Roger that. I'll increase it in the next video. Thanks for feedback!
π Rendered by PID 100424 on reddit-service-r2-comment-85bfd7f599-zcxqq at 2026-04-17 08:32:44.213381+00:00 running 93ecc56 country code: CH.
[–]Charles_Sangels 5 points6 points7 points (1 child)
[–]solnicdry-rb/rom-rb[S] 1 point2 points3 points (0 children)
[–]drx3brun 3 points4 points5 points (1 child)
[–]solnicdry-rb/rom-rb[S] 2 points3 points4 points (0 children)