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):
32
#121 - Peter Meehan / @22A

07/27/2019 at 04:51PM

32
#122 - Enoch / @_enocht

07/29/2019 at 06:01AM

32
#123 - HMSBoaty / @HMS_Boaty

08/08/2019 at 12:02PM

33
#124 - mmaorc / @mmaorc1

07/20/2019 at 11:46AM

33
#125 - andresote / @andresote

07/20/2019 at 10:18PM

33
#126 - Jonathan Eidsness / @jonathaneidsnes

07/22/2019 at 05:39PM

33
#127 - Lukas Stratmann / @Lumpiluk

08/07/2019 at 01:25PM

34
#128 - joseph.cheng / @josephc89207523

07/20/2019 at 05:54AM

34
#129 - Ohan / @Br0han

07/30/2019 at 04:23AM

34
#130 - Viktor Fukala / @FukalaViktor

07/30/2019 at 10:27AM

34
#131 - Mike Hourahine / @mhourahine

08/11/2019 at 09:43PM

35
#132 - Bob Ren / @bobrenjc93

07/20/2019 at 02:16AM

35
#133 - wwilkins / @wwilkins

07/23/2019 at 09:40PM

39
#134 - FreeTheBSD / @FreeTheBSD

07/20/2019 at 02:29AM

39
#135 - crokobit / @crokobit11

07/27/2019 at 03:38AM

40
#136 - Nicolas 👨‍💻🇨🇦 / @martinni39

08/09/2019 at 06:42PM

40
#137 - Whitelea / @CloudPaal

08/12/2019 at 07:53AM

41
#138 - Victor Litvin / @litvin_victor

07/20/2019 at 08:53PM

41
#139 - averageRandomPerson / @averageRandomP1

08/12/2019 at 10:51PM

42
#140 - Curtis Chong / @curtischong5

08/17/2019 at 10:23PM

43
#141 - David Needham / @davidmneedham

07/20/2019 at 02:04AM

43
#142 - Karan Gajwani / @karangb

08/16/2019 at 09:59AM

45
#143 - vimgolfacct / @vimgolfacct

07/27/2019 at 01:30PM

49
#144 - Vim Golfer / @VimGolfer6

07/19/2019 at 11:01AM

52
#145 - bjarne stroustrup (dj set) / @scarletdenizen

08/02/2019 at 09:22PM

54
#146 - Tri Le / @Tri_Le

07/25/2019 at 11:11PM

69
#147 - dahara / @kuma_moooon

08/06/2019 at 03:34PM

74
#148 - Paul Teehan / @paulteehan

07/26/2019 at 01:51PM

78
#149 - Ozzy Walsh / @Novigradian

08/02/2019 at 09:22AM