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 by @benjipelletier:

Unlock 9 remaining solutions by signing in and submitting your own entry
Created by: @BradleySmall

539 active golfers, 2072 entries

Solutions by @benjipelletier:
22
#320 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 02:14PM

22
#>320 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 02:17PM

23
#>349 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 02:16PM

24
#>368 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 02:11PM

29
#>430 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 02:03PM

32
#>457 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 01:56PM

40
#>504 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 01:50PM

46
#>515 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 01:43PM

109
#>536 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 01:49PM