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):
20
#61 - garry quested / @GQuested

07/20/2019 at 12:38PM

20
#62 - Jon Miller / @jmillxyz

07/21/2019 at 06:45PM

20
#63 - vana / @vana15129217

07/22/2019 at 11:35AM

20
#64 - Walker Boh / @walker_boh

07/22/2019 at 12:37PM

20
#65 - John Contad! / @JohnContad

07/25/2019 at 06:34AM

20
#66 - Jonathan Browning / @yungjig90

07/30/2019 at 12:12AM

20
#67 - matthew brett / @matthewbrett

08/07/2019 at 04:42AM

20
#68 - André Reigoto / @AndreReigoto

08/08/2019 at 02:46AM

20
#69 - Peter Demin / @peterdemin

08/08/2019 at 05:37PM

20
#70 - Noisome Possum / @NoisomePossum

08/09/2019 at 07:53PM

21
#71 - Jason O'Brien / @jasonobrien

07/23/2019 at 04:36PM

21
#72 - Percelot / @percelot

07/24/2019 at 02:12PM

21
#73 - albalitz / @_albalitz

08/01/2019 at 07:49AM

21
#74 - forvimgolf / @forvimgolf2

08/01/2019 at 08:16PM

21
#75 - Ivo Blöchliger / @aigledesalpes

08/01/2019 at 08:21PM

21
#76 - Chris Shorrock / @EbinFlow

08/13/2019 at 04:50PM

21
#77 - Ralph Callaway / @RalphAtCCC

08/19/2019 at 08:23PM

22
#78 - Jeff Schomay / @jschomay

07/21/2019 at 05:05PM

22
#79 - Maor Leger / @maor_leger

07/21/2019 at 06:25PM

22
#80 - Danny T / @son_of_torkel

07/28/2019 at 09:44PM

22
#81 - Mark / @markf62

07/29/2019 at 06:05PM

22
#82 - daniel / @daniel31464605

08/12/2019 at 07:36AM

22
#83 - Wistan Chou / @wisty97

08/15/2019 at 02:19AM

23
#84 - Scott Schlesier / @sschlesier

07/21/2019 at 03:49AM

23
#85 - pjoe / @pjoe

07/21/2019 at 03:51PM

23
#86 - Clint Caudle / @ClintCaudle

07/22/2019 at 02:38AM

23
#87 - tllilleh / @tllilleh

07/25/2019 at 08:55PM

23
#88 - Paul Inc / @hiniol1982

08/14/2019 at 06:50PM

23
#89 - Christopher Weyand / @swordman378

08/21/2019 at 01:10PM

24
#90 - Isaak Meier / @IsaakMeier

08/02/2019 at 03:29PM