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 5fa95fbdd285680008e41e4b

swap number pairs

Swap the numbers in a bunch of 2-element arrays.

Start file
[2, 1], [5, 4]
[6, 3]
[7, 4]
[8, 2], [12, 11]
End file
[1, 2], [4, 5]
[3, 6]
[4, 7]
[2, 8], [11, 12]

View Diff

1,4c1,4
< [2, 1], [5, 4]
< [6, 3]
< [7, 4]
< [8, 2], [12, 11]
---
> [1, 2], [4, 5]
> [3, 6]
> [4, 7]
> [2, 8], [11, 12]

Solutions by @FromageGimmie:

Unlock 14 remaining solutions by signing in and submitting your own entry
Created by: @wedesoft

263 active golfers, 1357 entries

Solutions by @FromageGimmie:
16
#26 - gimmie fromage / @FromageGimmie

01/25/2021 at 01:26PM

17
#>70 - gimmie fromage / @FromageGimmie

01/25/2021 at 01:22PM

18
#>87 - gimmie fromage / @FromageGimmie

01/25/2021 at 01:20PM

19
#>94 - gimmie fromage / @FromageGimmie

01/25/2021 at 01:19PM

20
#>95 - gimmie fromage / @FromageGimmie

01/25/2021 at 01:16PM

21
#>100 - gimmie fromage / @FromageGimmie

01/25/2021 at 01:07PM

22
#>107 - gimmie fromage / @FromageGimmie

01/25/2021 at 01:05PM

23
#>117 - gimmie fromage / @FromageGimmie

01/25/2021 at 01:04PM

24
#>120 - gimmie fromage / @FromageGimmie

01/25/2021 at 01:01PM

25
#>124 - gimmie fromage / @FromageGimmie

01/24/2021 at 01:05PM

26
#>130 - gimmie fromage / @FromageGimmie

01/24/2021 at 12:56PM

27
#>138 - gimmie fromage / @FromageGimmie

01/24/2021 at 12:52PM

32
#>181 - gimmie fromage / @FromageGimmie

01/24/2021 at 12:20PM

34
#>193 - gimmie fromage / @FromageGimmie

01/24/2021 at 12:16PM