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

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

138 active golfers, 873 entries

Solutions by @tchigvaria:
23
#14 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:57PM

23
#>14 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:58PM

24
#>32 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:42PM

24
#>32 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:46PM

33
#>49 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:33PM

33
#>49 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:37PM

34
#>54 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:27PM

35
#>58 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:22PM

37
#>59 - Irakli Chigvaria / @tchigvaria

05/31/2022 at 05:39PM

38
#>61 - Irakli Chigvaria / @tchigvaria

05/31/2022 at 05:26PM

39
#>63 - Irakli Chigvaria / @tchigvaria

05/31/2022 at 05:22PM

40
#>68 - Irakli Chigvaria / @tchigvaria

05/31/2022 at 05:04PM

40
#>68 - Irakli Chigvaria / @tchigvaria

05/31/2022 at 05:09PM

42
#>69 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:41PM

42
#>69 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:50PM

42
#>69 - Irakli Chigvaria / @tchigvaria

05/31/2022 at 05:18PM

43
#>70 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:38PM

46
#>77 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:30PM

51
#>82 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:22PM

58
#>91 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:15PM

73
#>116 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:04PM

85
#>125 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 08:18AM