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

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

67 active golfers, 229 entries

Solutions by @nickandbro:
17
#15 - nickGPT / @nickandbro

08/28/2024 at 08:08PM

18
#>17 - nickGPT / @nickandbro

08/28/2024 at 08:08PM

19
#>24 - nickGPT / @nickandbro

08/28/2024 at 08:08PM

20
#>25 - nickGPT / @nickandbro

08/28/2024 at 08:08PM

21
#>26 - nickGPT / @nickandbro

08/28/2024 at 08:08PM

22
#>30 - nickGPT / @nickandbro

08/28/2024 at 08:08PM

23
#>31 - nickGPT / @nickandbro

08/28/2024 at 08:08PM

24
#>37 - nickGPT / @nickandbro

08/28/2024 at 08:08PM

25
#>38 - nickGPT / @nickandbro

08/28/2024 at 08:08PM

26
#>42 - nickGPT / @nickandbro

08/28/2024 at 08:08PM

27
#>48 - nickGPT / @nickandbro

08/28/2024 at 08:08PM

28
#>54 - nickGPT / @nickandbro

08/28/2024 at 08:07PM

29
#>59 - nickGPT / @nickandbro

08/28/2024 at 08:07PM

30
#>62 - nickGPT / @nickandbro

08/28/2024 at 08:07PM

32
#>63 - nickGPT / @nickandbro

08/28/2024 at 08:07PM

33
#>64 - nickGPT / @nickandbro

08/28/2024 at 08:07PM

35
#>65 - nickGPT / @nickandbro

08/28/2024 at 08:07PM

47
#>66 - nickGPT / @nickandbro

08/28/2024 at 08:07PM

51
#>67 - nickGPT / @nickandbro

08/28/2024 at 08:07PM