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

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

68 active golfers, 231 entries

Solutions by @poeminlash:
17
#12 - Qing Liu / @poeminlash

08/14/2022 at 03:05AM

18
#>17 - Qing Liu / @poeminlash

08/14/2022 at 02:51AM

19
#>24 - Qing Liu / @poeminlash

08/14/2022 at 02:51AM

20
#>25 - Qing Liu / @poeminlash

08/14/2022 at 02:51AM

21
#>26 - Qing Liu / @poeminlash

08/14/2022 at 02:50AM

22
#>29 - Qing Liu / @poeminlash

08/14/2022 at 02:50AM

23
#>31 - Qing Liu / @poeminlash

08/14/2022 at 02:49AM

24
#>37 - Qing Liu / @poeminlash

08/14/2022 at 02:48AM

25
#>38 - Qing Liu / @poeminlash

08/14/2022 at 02:48AM

26
#>41 - Qing Liu / @poeminlash

08/14/2022 at 02:47AM

27
#>48 - Qing Liu / @poeminlash

08/14/2022 at 02:47AM