Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 5d3122ace2e18c0006b8bc4d

Bad Copy Syntax

Copy should be from right to left, but sometimes you type it wrong.

Start file
   copyRtL(source, destination);
   copyRtL("John Q. Public", nameVariable);
End file
   copyRtL(destination, source);
   copyRtL(nameVariable, "John Q. Public");

View Diff

1,2c1,2
<    copyRtL(source, destination);
<    copyRtL("John Q. Public", nameVariable);
---
>    copyRtL(destination, source);
>    copyRtL(nameVariable, "John Q. Public");

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 148 remaining solutions by signing in and submitting your own entry
#149 Ozzy Walsh / @Novigradian - Score: 78 - 08/02/19 @ 09:22
wwci(destination, sourcejk<BS><BS><Esc>jci(namr<BS>eVariable, "Jon <BS><BS>hn Q. Public"jk<BS><BS><Esc>:wq<CR>

0 comments


Created by: @BradleySmall

149 active golfers, 515 entries

Leaderboard (lowest score wins):
19
#31 - Markus / @ARealAnnoyance

07/26/2019 at 05:21PM

19
#32 - Petro Тrouq / @zulolosi

07/27/2019 at 11:30AM

19
#33 - kokiteru / @hommakoki

07/28/2019 at 01:09PM

19
#34 - Turkey Man / @lvturkeyman

08/01/2019 at 05:28AM

19
#35 - Hugo Tai / @HugoTai100

08/01/2019 at 09:12AM

19
#36 - XiaoXiaoLui / @XiaoXiaoLui1

08/01/2019 at 01:47PM

19
#37 - Lucas Javaudin / @LucasJavaudin

08/01/2019 at 07:45PM

19
#38 - Joel Elkins / @dice_tea

08/01/2019 at 08:52PM

19
#39 - Dax / @zacoxi

08/03/2019 at 09:42AM

19
#40 - Andreas Hübner / @hyperbolicus140

08/03/2019 at 03:54PM

19
#41 - Adam Katz / @AdamKat01277576

08/04/2019 at 12:44PM

19
#42 - りんご / @ringo9971

08/05/2019 at 08:09AM

19
#43 - George Sofianos / @GeoSofianos

08/05/2019 at 06:46PM

19
#44 - John Braxler / @braxler

08/05/2019 at 07:48PM

19
#45 - 张忠荣 / @ZZRcooperation

08/06/2019 at 10:27AM

19
#46 - DrHobo / @_DrHobo_

08/07/2019 at 01:34AM

19
#47 - Brian Li / @BriungRi

08/07/2019 at 06:03AM

19
#48 - sooqua / @sooqua

08/07/2019 at 12:24PM

19
#49 - Martin Delille / @martinodelilo

08/07/2019 at 02:51PM

19
#50 - lvi / @astrocytew

08/08/2019 at 03:26PM

19
#51 - NieDżejkob / @NieDzejkob

08/08/2019 at 11:03PM

19
#52 - Thomas Tøkje / @tokjenator

08/09/2019 at 04:22PM

19
#53 - Titouan Teyssier / @TitouanT_

08/10/2019 at 06:02PM

19
#54 - Will Durney / @WillDurney

08/13/2019 at 06:46PM

19
#55 - Daniel Steinberg / @dstein64

08/16/2019 at 01:53AM

19
#56 - Adam Hartz / @awareofnow

08/18/2019 at 12:48AM

19
#57 - Daisuke Ito / @itodais

08/21/2019 at 02:41PM

20
#58 - Derek Schrock / @derekschrock

07/19/2019 at 02:34AM

20
#59 - Bradley M. Small / @BradleySmall

07/19/2019 at 03:16AM

20
#60 - mrrdl / @mrrdl5

07/19/2019 at 08:50PM