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

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

70 active golfers, 351 entries

Solutions by @Bspammer:
23
#9 - Bspammer / @Bspammer

08/14/2021 at 02:14AM

24
#>18 - Bspammer / @Bspammer

08/14/2021 at 01:56AM

24
#>18 - Bspammer / @Bspammer

08/14/2021 at 02:01AM

33
#>19 - Bspammer / @Bspammer

08/14/2021 at 01:54AM

34
#>25 - Bspammer / @Bspammer

08/14/2021 at 01:51AM

35
#>26 - Bspammer / @Bspammer

08/14/2021 at 01:50AM

39
#>28 - Bspammer / @Bspammer

08/14/2021 at 01:49AM

39
#>28 - Bspammer / @Bspammer

08/14/2021 at 01:49AM

40
#>30 - Bspammer / @Bspammer

08/14/2021 at 01:48AM

42
#>31 - Bspammer / @Bspammer

08/14/2021 at 01:46AM

44
#>33 - Bspammer / @Bspammer

08/14/2021 at 01:45AM

47
#>36 - Bspammer / @Bspammer

08/14/2021 at 01:41AM

48
#>36 - Bspammer / @Bspammer

08/14/2021 at 01:44AM

56
#>40 - Bspammer / @Bspammer

08/14/2021 at 01:36AM

58
#>43 - Bspammer / @Bspammer

08/14/2021 at 01:34AM

62
#>48 - Bspammer / @Bspammer

08/14/2021 at 01:31AM

64
#>49 - Bspammer / @Bspammer

08/14/2021 at 01:30AM

64
#>49 - Bspammer / @Bspammer

08/14/2021 at 01:32AM

65
#>49 - Bspammer / @Bspammer

08/14/2021 at 01:29AM

71
#>55 - Bspammer / @Bspammer

08/14/2021 at 01:10AM

73
#>57 - Bspammer / @Bspammer

08/14/2021 at 01:08AM

79
#>61 - Bspammer / @Bspammer

08/14/2021 at 01:06AM

81
#>62 - Bspammer / @Bspammer

08/14/2021 at 01:05AM

89
#>63 - Bspammer / @Bspammer

08/14/2021 at 01:13AM