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

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

525 active golfers, 2037 entries

Solutions by @foobar01123:
18
#12 - Miłosz Łakomy / @foobar01123

11/15/2020 at 04:44AM

19
#>57 - Miłosz Łakomy / @foobar01123

07/21/2019 at 09:00AM

19
#>200 - Miłosz Łakomy / @foobar01123

07/10/2020 at 02:30PM

20
#>227 - Miłosz Łakomy / @foobar01123

07/21/2019 at 08:59AM

20
#>271 - Miłosz Łakomy / @foobar01123

11/14/2020 at 04:51AM

22
#>308 - Miłosz Łakomy / @foobar01123

07/21/2019 at 08:58AM