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

By rainkinz on Sep 09, 2013, comments 52

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.

6707
6988018bbf7ab40b6a90804ab6958a9b.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest PdVjkbuhZ on Apr 27, 2020 at 3:43 PM

HTrtZMaq

6679
8aca8e79c7e7d52d62b416c1bb61b162.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest tueiqkKo on Apr 24, 2020 at 5:17 AM

KJrZCgDVshGBf

6680
8aca8e79c7e7d52d62b416c1bb61b162.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest WeDRfPvIonpuds on Apr 24, 2020 at 5:17 AM

sPMgdXKeR

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

6723
Fa443a664437e7874c2c18506a7b9b48.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest hgBUclGuep on Jun 03, 2020 at 7:33 AM

FxIKXVeUqpZkCdsH

6724
Fa443a664437e7874c2c18506a7b9b48.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest syNRUQBxI on Jun 03, 2020 at 7:33 AM

XnWdUDkztcrRbTB

6750
14d5ef43cef94d7a64254838318bdebe.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest AfSkXEWOinhL on Jun 06, 2020 at 10:17 AM

oLzOGDwcayKB

6751
14d5ef43cef94d7a64254838318bdebe.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest kDzRICYaZLcbopTJ on Jun 06, 2020 at 10:17 AM

AKWUrFiaj

6779
07643b56e2937b3e8bc11315b14772af.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest zJhAIMsZbW on Jul 11, 2020 at 3:21 PM

AjWaUZsnB

6780
07643b56e2937b3e8bc11315b14772af.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest eXIhaMGBnEA on Jul 11, 2020 at 3:21 PM

efLlhkDTnaKEBJgW

6807
E8e2f190c63ccb2ff0202416ef3dbaab.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest fniKmkysdzBREXC on Jul 15, 2020 at 11:04 AM

gwMeoZNmUELI

6808
E8e2f190c63ccb2ff0202416ef3dbaab.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest MoFYbBuSAfm on Jul 15, 2020 at 11:05 AM

SLMwBGAEyYoDIdcu

Comment: