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

113 active golfers, 645 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
#>28 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:42PM

24
#>28 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:46PM

33
#>36 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:33PM

33
#>36 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:37PM

34
#>40 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:27PM

35
#>43 - Irakli Chigvaria / @tchigvaria

06/01/2022 at 02:22PM

37
#>44 - Irakli Chigvaria / @tchigvaria

05/31/2022 at 05:39PM

38
#>46 - Irakli Chigvaria / @tchigvaria

05/31/2022 at 05:26PM

39
#>48 - Irakli Chigvaria / @tchigvaria

05/31/2022 at 05:22PM

40
#>51 - Irakli Chigvaria / @tchigvaria

05/31/2022 at 05:04PM

40
#>51 - Irakli Chigvaria / @tchigvaria

05/31/2022 at 05:09PM

42
#>52 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:41PM

42
#>52 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:50PM

42
#>52 - Irakli Chigvaria / @tchigvaria

05/31/2022 at 05:18PM

43
#>53 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:38PM

46
#>59 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:30PM

51
#>63 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:22PM

58
#>70 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:15PM

73
#>92 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 04:04PM

85
#>101 - Irakli Chigvaria / @tchigvaria

05/29/2022 at 08:18AM