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 @hiniol1982:

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

536 active golfers, 2055 entries

Solutions by @hiniol1982:
23
#343 - Paul Inc / @hiniol1982

08/14/2019 at 06:50PM

24
#>365 - Paul Inc / @hiniol1982

08/14/2019 at 06:18PM

24
#>365 - Paul Inc / @hiniol1982

08/14/2019 at 06:45PM

25
#>380 - Paul Inc / @hiniol1982

08/14/2019 at 06:15PM

26
#>399 - Paul Inc / @hiniol1982

03/24/2020 at 04:30AM

33
#>465 - Paul Inc / @hiniol1982

08/14/2019 at 06:53PM

34
#>473 - Paul Inc / @hiniol1982

08/14/2019 at 06:09PM

40
#>501 - Paul Inc / @hiniol1982

08/14/2019 at 06:12PM

41
#>506 - Paul Inc / @hiniol1982

03/24/2020 at 04:28AM