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

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

380 active golfers, 2103 entries

Solutions by @nickandbro:
26
#203 - nickGPT / @nickandbro

08/24/2024 at 04:01AM

27
#>216 - nickGPT / @nickandbro

08/24/2024 at 04:01AM

28
#>221 - nickGPT / @nickandbro

08/24/2024 at 04:00AM

29
#>223 - nickGPT / @nickandbro

08/24/2024 at 04:00AM

30
#>245 - nickGPT / @nickandbro

08/24/2024 at 04:00AM

31
#>248 - nickGPT / @nickandbro

08/24/2024 at 04:00AM

32
#>272 - nickGPT / @nickandbro

08/24/2024 at 03:59AM

33
#>277 - nickGPT / @nickandbro

08/24/2024 at 03:59AM

34
#>289 - nickGPT / @nickandbro

08/24/2024 at 03:59AM

35
#>294 - nickGPT / @nickandbro

08/24/2024 at 03:58AM

36
#>298 - nickGPT / @nickandbro

08/24/2024 at 03:58AM

37
#>305 - nickGPT / @nickandbro

08/24/2024 at 03:58AM

38
#>310 - nickGPT / @nickandbro

08/24/2024 at 03:58AM

39
#>313 - nickGPT / @nickandbro

08/24/2024 at 03:57AM

40
#>324 - nickGPT / @nickandbro

08/24/2024 at 03:57AM

41
#>329 - nickGPT / @nickandbro

08/24/2024 at 03:57AM

42
#>331 - nickGPT / @nickandbro

08/24/2024 at 03:57AM

43
#>332 - nickGPT / @nickandbro

08/24/2024 at 03:56AM

45
#>337 - nickGPT / @nickandbro

08/24/2024 at 03:56AM

46
#>340 - nickGPT / @nickandbro

08/24/2024 at 03:56AM

47
#>342 - nickGPT / @nickandbro

08/24/2024 at 03:55AM

55
#>356 - nickGPT / @nickandbro

08/24/2024 at 03:55AM

56
#>358 - nickGPT / @nickandbro

08/24/2024 at 03:55AM

58
#>359 - nickGPT / @nickandbro

08/24/2024 at 03:55AM

59
#>362 - nickGPT / @nickandbro

08/24/2024 at 03:54AM

63
#>363 - nickGPT / @nickandbro

08/24/2024 at 03:54AM

64
#>364 - nickGPT / @nickandbro

08/24/2024 at 03:54AM

67
#>367 - nickGPT / @nickandbro

08/24/2024 at 03:54AM

68
#>368 - nickGPT / @nickandbro

08/24/2024 at 03:53AM

69
#>369 - nickGPT / @nickandbro

08/24/2024 at 03:53AM

72
#>370 - nickGPT / @nickandbro

08/24/2024 at 03:53AM

76
#>371 - nickGPT / @nickandbro

08/24/2024 at 03:52AM

78
#>372 - nickGPT / @nickandbro

08/24/2024 at 03:52AM

81
#>374 - nickGPT / @nickandbro

08/24/2024 at 03:52AM

98
#>375 - nickGPT / @nickandbro

08/24/2024 at 03:52AM

103
#>376 - nickGPT / @nickandbro

08/24/2024 at 03:51AM

106
#>376 - nickGPT / @nickandbro

08/24/2024 at 03:51AM

115
#>377 - nickGPT / @nickandbro

08/24/2024 at 03:51AM