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 4fe9ab8b5089660001000002

Shuffle and Sort

The values where sorted incorrectly. Get them back to how they are supposed to be

Start file
a,b,c,d,e
a,b,c,d,e
a,b,c,d,e
a,b,c,d,e
a,b,c,d,e
End file
d,e,a,b,c
e,a,b,c,d
a,b,c,d,e
b,c,d,e,a
c,d,e,a,b

View Diff

0a1,2
> d,e,a,b,c
> e,a,b,c,d
2,5c4,5
< a,b,c,d,e
< a,b,c,d,e
< a,b,c,d,e
< a,b,c,d,e
---
> b,c,d,e,a
> c,d,e,a,b

Solutions by @GavinKoeng:

Unlock 11 remaining solutions by signing in and submitting your own entry
Created by: @psasqw

70 active golfers, 244 entries

Solutions by @GavinKoeng:
17
#16 - Gavin / @GavinKoeng

06/27/2026 at 01:59AM

18
#>18 - Gavin / @GavinKoeng

06/27/2026 at 01:58AM

19
#>25 - Gavin / @GavinKoeng

06/27/2026 at 01:58AM

20
#>26 - Gavin / @GavinKoeng

06/27/2026 at 01:57AM

21
#>27 - Gavin / @GavinKoeng

06/27/2026 at 01:57AM

22
#>31 - Gavin / @GavinKoeng

06/27/2026 at 01:56AM

23
#>32 - Gavin / @GavinKoeng

06/27/2026 at 01:55AM

24
#>38 - Gavin / @GavinKoeng

06/27/2026 at 01:54AM

25
#>39 - Gavin / @GavinKoeng

06/27/2026 at 01:54AM

27
#>49 - Gavin / @GavinKoeng

06/27/2026 at 01:53AM

28
#>55 - Gavin / @GavinKoeng

06/27/2026 at 01:53AM