Mapping a key to run the currently visible ruby file in VIM

By rainkinz on Sep 09, 2013, comments 41

Gary Bernhardt uses this in his fantastic Destroy All Software series.

:map ,t :w\|:!ruby %<cr>  
4362
0fd5e2c1670bcbed53a1be989bcc4d34.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest Neawneelm on Dec 16, 2013 at 11:43 AM

N14814
e12249
d14683

4365
61ab39a9ae9a2cd30426ece38bb08483.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest Priermrit on Dec 16, 2013 at 2:04 PM

I15310
J14712
l16352


zlinks!@#

6651
412c48093032cc835e406d7444538be0.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest fUwJWuiAjLpIqcG on Mar 27, 2020 at 9:30 PM

pkNgPeUASM

6652
412c48093032cc835e406d7444538be0.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest yOzSxUcje on Mar 27, 2020 at 9:30 PM

xGgNpbhjBCsk

5936
122ae207439f504c14ecfbdfc91d752f.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest Keyanna on Jan 06, 2016 at 7:36 PM

Posts like this brhetign up my day. Thanks for taking the time.

6470
84f1ddbc7b31b9287a31a122c86bfb17.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest ElvaJxn on Dec 27, 2017 at 3:40 AM

апрапрапр

6623
02790a417dfcc044d23ac30423a79f93.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest CQsVczpN on Feb 01, 2020 at 1:59 PM

VnzDwHeBoc

6624
02790a417dfcc044d23ac30423a79f93.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest mXCbeViP on Feb 01, 2020 at 1:59 PM

DKyPuTgnUvhRFVLe

6597
8989a6da2be2bcd88c679642585f1c43.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest kiqLcmPurWEtYQlG on Dec 08, 2019 at 10:35 AM

mApKHUTZWnYoEz

6598
8989a6da2be2bcd88c679642585f1c43.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest pBeCKUTb on Dec 08, 2019 at 10:35 AM

vmeiQXgBxuZfK

Comment: