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 9v0062d0773d000000000225

Reformat symbols in list

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

Start file
inputs = [ 1 2 3 4 5 ]
outputs = [ 1 2 3 4 5 ]
End file
inputs = [ i1 i2 i3 i4 i5 ]
outputs = [ (o1,i1) (o2,i2) (o3,i3) (o4,i4) (o5,i5) ]

View Diff

1,2c1,2
< inputs = [ 1 2 3 4 5 ]
< outputs = [ 1 2 3 4 5 ]
---
> inputs = [ i1 i2 i3 i4 i5 ]
> outputs = [ (o1,i1) (o2,i2) (o3,i3) (o4,i4) (o5,i5) ]

Solutions by @nickandbro:

Unlock 54 remaining solutions by signing in and submitting your own entry
Created by: @selfuryon

348 active golfers, 1621 entries

Solutions by @nickandbro:
24
#64 - nickGPT / @nickandbro

08/23/2024 at 02:50PM

24
#>64 - nickGPT / @nickandbro

08/23/2024 at 02:54PM

24
#>64 - nickGPT / @nickandbro

08/26/2024 at 07:54PM

25
#>105 - nickGPT / @nickandbro

08/23/2024 at 02:49PM

26
#>113 - nickGPT / @nickandbro

08/23/2024 at 02:49PM

27
#>167 - nickGPT / @nickandbro

08/23/2024 at 02:49PM

28
#>175 - nickGPT / @nickandbro

08/23/2024 at 02:49PM

29
#>187 - nickGPT / @nickandbro

08/23/2024 at 02:48PM

30
#>203 - nickGPT / @nickandbro

08/23/2024 at 02:48PM

31
#>204 - nickGPT / @nickandbro

08/23/2024 at 02:48PM

32
#>208 - nickGPT / @nickandbro

08/23/2024 at 02:43PM

33
#>213 - nickGPT / @nickandbro

08/23/2024 at 02:42PM

34
#>219 - nickGPT / @nickandbro

08/23/2024 at 07:50AM

35
#>229 - nickGPT / @nickandbro

08/23/2024 at 07:49AM

36
#>241 - nickGPT / @nickandbro

08/23/2024 at 07:49AM

37
#>249 - nickGPT / @nickandbro

08/23/2024 at 07:48AM

38
#>260 - nickGPT / @nickandbro

08/23/2024 at 07:48AM

39
#>268 - nickGPT / @nickandbro

08/23/2024 at 07:47AM

40
#>272 - nickGPT / @nickandbro

08/23/2024 at 07:47AM

41
#>281 - nickGPT / @nickandbro

08/23/2024 at 07:46AM

42
#>289 - nickGPT / @nickandbro

08/23/2024 at 07:46AM

43
#>294 - nickGPT / @nickandbro

08/23/2024 at 07:45AM

44
#>299 - nickGPT / @nickandbro

08/23/2024 at 07:45AM

45
#>302 - nickGPT / @nickandbro

08/23/2024 at 07:44AM

46
#>305 - nickGPT / @nickandbro

08/23/2024 at 07:43AM

47
#>308 - nickGPT / @nickandbro

08/23/2024 at 07:43AM

48
#>309 - nickGPT / @nickandbro

08/23/2024 at 07:42AM

49
#>313 - nickGPT / @nickandbro

08/23/2024 at 07:41AM

51
#>316 - nickGPT / @nickandbro

08/23/2024 at 07:40AM

53
#>320 - nickGPT / @nickandbro

08/23/2024 at 07:40AM

54
#>322 - nickGPT / @nickandbro

08/23/2024 at 07:39AM

55
#>324 - nickGPT / @nickandbro

08/23/2024 at 07:39AM

56
#>324 - nickGPT / @nickandbro

08/23/2024 at 07:38AM

58
#>326 - nickGPT / @nickandbro

08/23/2024 at 07:38AM

60
#>328 - nickGPT / @nickandbro

08/23/2024 at 07:37AM

61
#>330 - nickGPT / @nickandbro

08/23/2024 at 07:36AM

63
#>331 - nickGPT / @nickandbro

08/23/2024 at 07:35AM

65
#>332 - nickGPT / @nickandbro

08/23/2024 at 07:35AM

67
#>333 - nickGPT / @nickandbro

08/23/2024 at 07:34AM

71
#>334 - nickGPT / @nickandbro

08/23/2024 at 07:34AM

78
#>335 - nickGPT / @nickandbro

08/23/2024 at 07:33AM

80
#>336 - nickGPT / @nickandbro

08/23/2024 at 07:32AM

82
#>337 - nickGPT / @nickandbro

08/23/2024 at 07:32AM

86
#>338 - nickGPT / @nickandbro

08/23/2024 at 07:31AM

90
#>339 - nickGPT / @nickandbro

08/23/2024 at 05:00AM

97
#>340 - nickGPT / @nickandbro

08/23/2024 at 05:00AM

110
#>341 - nickGPT / @nickandbro

08/23/2024 at 04:59AM

120
#>342 - nickGPT / @nickandbro

08/23/2024 at 04:59AM

131
#>343 - nickGPT / @nickandbro

08/23/2024 at 04:58AM

164
#>344 - nickGPT / @nickandbro

08/23/2024 at 04:47AM

171
#>345 - nickGPT / @nickandbro

08/23/2024 at 04:46AM

179
#>346 - nickGPT / @nickandbro

08/23/2024 at 04:45AM

187
#>347 - nickGPT / @nickandbro

08/23/2024 at 04:34AM

202
#>348 - nickGPT / @nickandbro

08/23/2024 at 04:33AM