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

Transpose a python matrix

Rotate the matrix in 90 degrees.

Start file
((1, 2, 3, 4),
 (5, 6, 7, 8),
 (9, 10, 11, 12),
 (13, 14, 15, 16))
End file
((1, 5, 9, 13),
 (2, 6, 10, 14),
 (3, 7, 11, 15),
 (4, 8, 12, 16))

View Diff

1,4c1,4
< ((1, 2, 3, 4),
<  (5, 6, 7, 8),
<  (9, 10, 11, 12),
<  (13, 14, 15, 16))
---
> ((1, 5, 9, 13),
>  (2, 6, 10, 14),
>  (3, 7, 11, 15),
>  (4, 8, 12, 16))

Solutions by @huynh_j93:

Unlock 21 remaining solutions by signing in and submitting your own entry
Created by: @Kyle98675198

138 active golfers, 873 entries

Solutions by @huynh_j93:
24
#35 - John Huynh / @huynh_j93

03/30/2023 at 07:45PM

33
#>50 - John Huynh / @huynh_j93

03/30/2023 at 07:42PM

34
#>55 - John Huynh / @huynh_j93

03/30/2023 at 07:41PM

35
#>58 - John Huynh / @huynh_j93

03/30/2023 at 07:39PM

37
#>60 - John Huynh / @huynh_j93

03/30/2023 at 07:36PM

38
#>61 - John Huynh / @huynh_j93

03/30/2023 at 07:34PM

39
#>64 - John Huynh / @huynh_j93

03/30/2023 at 07:33PM

40
#>68 - John Huynh / @huynh_j93

03/30/2023 at 07:30PM

40
#>68 - John Huynh / @huynh_j93

03/30/2023 at 07:31PM

42
#>69 - John Huynh / @huynh_j93

03/30/2023 at 07:27PM

43
#>70 - John Huynh / @huynh_j93

03/30/2023 at 07:23PM

45
#>75 - John Huynh / @huynh_j93

03/30/2023 at 07:21PM

47
#>79 - John Huynh / @huynh_j93

03/30/2023 at 07:16PM

47
#>79 - John Huynh / @huynh_j93

03/30/2023 at 07:19PM

56
#>88 - John Huynh / @huynh_j93

03/30/2023 at 07:11PM

58
#>91 - John Huynh / @huynh_j93

03/30/2023 at 07:06PM

59
#>94 - John Huynh / @huynh_j93

03/30/2023 at 07:01PM

60
#>95 - John Huynh / @huynh_j93

03/30/2023 at 06:56PM

64
#>100 - John Huynh / @huynh_j93

03/30/2023 at 06:58PM

68
#>108 - John Huynh / @huynh_j93

03/30/2023 at 06:55PM

74
#>119 - John Huynh / @huynh_j93

03/30/2023 at 06:51PM