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

516 active golfers, 2001 entries

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

08/14/2019 at 06:50PM

24
#>355 - Paul Inc / @hiniol1982

08/14/2019 at 06:18PM

24
#>355 - Paul Inc / @hiniol1982

08/14/2019 at 06:45PM

25
#>370 - Paul Inc / @hiniol1982

08/14/2019 at 06:15PM

26
#>387 - Paul Inc / @hiniol1982

03/24/2020 at 04:30AM

33
#>449 - Paul Inc / @hiniol1982

08/14/2019 at 06:53PM

34
#>457 - Paul Inc / @hiniol1982

08/14/2019 at 06:09PM

40
#>483 - Paul Inc / @hiniol1982

08/14/2019 at 06:12PM

41
#>488 - Paul Inc / @hiniol1982

03/24/2020 at 04:28AM