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):
24
#91 - Luiz Eduardo Amaral / @_luxedo

08/09/2019 at 05:49PM

25
#92 - Prabhakar Kumar / @prab97

07/19/2019 at 10:09PM

25
#93 - Nik Skoufis / @niksko

07/25/2019 at 01:50AM

25
#94 - Matt Vaughn / @mattttvaughn

07/28/2019 at 11:20PM

25
#95 - theBecwar / @thebecwar

08/18/2019 at 12:35PM

26
#96 - Not real / @Notreal70353016

07/23/2019 at 04:04AM

26
#97 - band / @band26376522

07/24/2019 at 08:31PM

26
#98 - Matthew Grossman / @GrossmanMr

08/02/2019 at 04:32AM

26
#99 - ARK / @ARK69712394

08/04/2019 at 01:14PM

26
#100 - André Hedesand / @andrehhh

08/07/2019 at 11:28AM

26
#101 - Thomas Versteeg / @versteeg_t

08/21/2019 at 04:52PM

27
#102 - Korgan / @Korgan36725554

07/23/2019 at 02:49AM

27
#103 - MiloIgnis / @MiloIgnis

07/24/2019 at 04:36PM

27
#104 - Floyd Gantt / @fgantt

07/26/2019 at 07:02PM

27
#105 - Colby Brown / @colbyabrown

07/29/2019 at 07:07PM

27
#106 - さ / @opocopoco

08/05/2019 at 04:04AM

27
#107 - Ben Allan / @hellobenallan

08/19/2019 at 01:48PM

28
#108 - Harsha Nadimpalli / @Harsha_live

07/31/2019 at 06:06AM

28
#109 - John / @JohnJDoe2

07/31/2019 at 10:09AM

28
#110 - Chad Harris / @chad__harris

08/07/2019 at 01:01AM

28
#111 - Hector Davensburg / @hdavensburg

08/13/2019 at 09:34PM

29
#112 - Charlie OConor / @charlieoconor

07/19/2019 at 07:09PM

29
#113 - antónio miranda / @ammutable

08/07/2019 at 09:29PM

29
#114 - Matt Tuttle / @Matt_Tuttle

08/09/2019 at 11:57PM

29
#115 - mathias / @mathias55990401

08/11/2019 at 09:46AM

30
#116 - Przemek Kurek / @PrzemekKurek

07/27/2019 at 10:01PM

30
#117 - Tencent / @JiezhiG

08/08/2019 at 09:59AM

31
#118 - Mr_Djez / @DjezMr

08/05/2019 at 11:19AM

31
#119 - Stefan Krist / @nerdyness_sk

08/20/2019 at 08:36PM

32
#120 - Miki Tebeka / @tebeka

07/21/2019 at 07:12AM