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

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

520 active golfers, 2024 entries

Solutions by @Luoyb:
19
#221 - Luoyb / @Luoyb

10/28/2023 at 07:45AM

20
#>273 - Luoyb / @Luoyb

10/28/2023 at 07:44AM

21
#>304 - Luoyb / @Luoyb

10/28/2023 at 07:43AM

22
#>331 - Luoyb / @Luoyb

10/28/2023 at 07:38AM