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

Sorting paragraphs

Order the paragraphs correctly, per prefixed index

Start file
4) Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla feugiat placerat odio. 
Praesent tempus, enim eget fermentum dictum, libero ante commodo enim, a adipiscing arcu arcu et erat. 
Ut ipsum neque, ornare nec condimentum a, feugiat et felis.

3) Nam vehicula velit mollis arcu vulputate tempus. Sed lobortis ante non ligula aliquet elementum.
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus pharetra, 
orci id commodo malesuada, mauris dolor viverra felis, eget euismod libero turpis vel nisi.

2) Phasellus mauris ipsum, placerat nec pellentesque ac, tristique vitae risus. 
Mauris rhoncus erat at eros feugiat blandit. Nulla facilisi. Vivamus semper blandit viverra. 
Mauris quis arcu quis purus feugiat auctor.

6) Sed id eros quis metus pellentesque pellentesque eget quis erat. Curabitur quis sapien turpis, sed ullamcorper 
ipsum. In hac habitasse platea dictumst. Sed quis elit eu elit congue vestibulum. Duis tincidunt pellentesque 
convallis. Mauris accumsan suscipit placerat. Nullam mattis vulputate enim non volutpat.

1) Morbi ultricies arcu erat. Praesent iaculis fermentum odio, in suscipit lorem congue id. 
Sed euismod felis nec ipsum laoreet et suscipit justo vulputate. Donec lorem odio, lobortis ut 
scelerisque sed, interdum nec augue.

5) Aenean in lorem mi. Mauris ac eros mi. In accumsan urna eu nibh euismod non imperdiet quam fringilla. 
Integer orci massa, mattis adipiscing commodo vel, cursus in lorem.
End file
1) Morbi ultricies arcu erat. Praesent iaculis fermentum odio, in suscipit lorem congue id. 
Sed euismod felis nec ipsum laoreet et suscipit justo vulputate. Donec lorem odio, lobortis ut 
scelerisque sed, interdum nec augue.

2) Phasellus mauris ipsum, placerat nec pellentesque ac, tristique vitae risus. 
Mauris rhoncus erat at eros feugiat blandit. Nulla facilisi. Vivamus semper blandit viverra. 
Mauris quis arcu quis purus feugiat auctor.

3) Nam vehicula velit mollis arcu vulputate tempus. Sed lobortis ante non ligula aliquet elementum.
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus pharetra, 
orci id commodo malesuada, mauris dolor viverra felis, eget euismod libero turpis vel nisi.

4) Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla feugiat placerat odio. 
Praesent tempus, enim eget fermentum dictum, libero ante commodo enim, a adipiscing arcu arcu et erat. 
Ut ipsum neque, ornare nec condimentum a, feugiat et felis.

5) Aenean in lorem mi. Mauris ac eros mi. In accumsan urna eu nibh euismod non imperdiet quam fringilla. 
Integer orci massa, mattis adipiscing commodo vel, cursus in lorem.

6) Sed id eros quis metus pellentesque pellentesque eget quis erat. Curabitur quis sapien turpis, sed ullamcorper 
ipsum. In hac habitasse platea dictumst. Sed quis elit eu elit congue vestibulum. Duis tincidunt pellentesque 
convallis. Mauris accumsan suscipit placerat. Nullam mattis vulputate enim non volutpat.

View Diff

1,7c1,3
< 4) Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla feugiat placerat odio. 
< Praesent tempus, enim eget fermentum dictum, libero ante commodo enim, a adipiscing arcu arcu et erat. 
< Ut ipsum neque, ornare nec condimentum a, feugiat et felis.
< 
< 3) Nam vehicula velit mollis arcu vulputate tempus. Sed lobortis ante non ligula aliquet elementum.
< Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus pharetra, 
< orci id commodo malesuada, mauris dolor viverra felis, eget euismod libero turpis vel nisi.
---
> 1) Morbi ultricies arcu erat. Praesent iaculis fermentum odio, in suscipit lorem congue id. 
> Sed euismod felis nec ipsum laoreet et suscipit justo vulputate. Donec lorem odio, lobortis ut 
> scelerisque sed, interdum nec augue.
13,15c9,11
< 6) Sed id eros quis metus pellentesque pellentesque eget quis erat. Curabitur quis sapien turpis, sed ullamcorper 
< ipsum. In hac habitasse platea dictumst. Sed quis elit eu elit congue vestibulum. Duis tincidunt pellentesque 
< convallis. Mauris accumsan suscipit placerat. Nullam mattis vulputate enim non volutpat.
---
> 3) Nam vehicula velit mollis arcu vulputate tempus. Sed lobortis ante non ligula aliquet elementum.
> Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus pharetra, 
> orci id commodo malesuada, mauris dolor viverra felis, eget euismod libero turpis vel nisi.
17,19c13,15
< 1) Morbi ultricies arcu erat. Praesent iaculis fermentum odio, in suscipit lorem congue id. 
< Sed euismod felis nec ipsum laoreet et suscipit justo vulputate. Donec lorem odio, lobortis ut 
< scelerisque sed, interdum nec augue.
---
> 4) Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla feugiat placerat odio. 
> Praesent tempus, enim eget fermentum dictum, libero ante commodo enim, a adipiscing arcu arcu et erat. 
> Ut ipsum neque, ornare nec condimentum a, feugiat et felis.
22a19,22
> 
> 6) Sed id eros quis metus pellentesque pellentesque eget quis erat. Curabitur quis sapien turpis, sed ullamcorper 
> ipsum. In hac habitasse platea dictumst. Sed quis elit eu elit congue vestibulum. Duis tincidunt pellentesque 
> convallis. Mauris accumsan suscipit placerat. Nullam mattis vulputate enim non volutpat.

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 160 remaining solutions by signing in and submitting your own entry
#161 GomsGame / @GameGoms - Score: 600 - 09/27/23 @ 03:46
jjjjjjjjkkkkkkkkkkkkkkkkkkkkkkkkkkkjjjjjjjjjjjjjjjjvs<C-Z><Esc>uv<End><Down><Down>dd<Up><Up><Down><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>pip<BS><Esc>p<C-Z>uuuuuv<S-Down><S-Up><S-Up><S-Up><S-Right><S-Left><S-Left><S-Right>yy<Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>pzuu<Esc>uu<Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><S-Down><S-Up><Up><Up><Up><Up><Down>v<Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>y<Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>i<CR><Up><C-A><F3>p<Esc><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>ddi<CR><Up><Esc><A-><Insert><Esc>p<Esc>ppdd<Up>dd<Up>dd<Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down>v<S-Down><Up><Up><Left><Up><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>y<Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>p<Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down>3dd<Up>dd<Up><Up><Up><Up><Up><Up><Up><Up><Down>v<Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>y<Up><Up><Up><Up><Up><Up><Up><Up><Up>p<Down><Down><Down><Down><Down><Down><Down><Down>v<Down><Down><End>y<Up><Up><Up><Up><Up>p<Down><Down><Down><Down><Down><Down><Down>d10<Esc>10dddddduuuupu<Down><Down><Down><Down><Down>v<S-Down><S-Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><End>y<Up><Up><Up><Up><Up>p<Down><Down><Down><Down><Down><Down><Down><Down>7ddddv<Down><Down><Right><Right><Right><End>y<Down><Down><Down><Down><Down>a<Esc>A<Esc><Esc>A<CR><CR><Esc>p<Down><Down><Down>dd<Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Down>4dd<Up><Up><Up><Up><Up><Up><Up>i<CR><Up><Up><Up><Up><CR><Esc>:wq<CR>

0 comments


Created by: @lee_jarvis

161 active golfers, 514 entries

Leaderboard (lowest score wins):
55
#151 - tinco / @tinco

12/29/2010 at 02:58PM

60
#152 - Boris Barroso / @borisb

12/29/2010 at 07:16PM

60
#153 - Isac Sacchi e Souza / @isacssouza

12/31/2010 at 10:24PM

63
#154 - P37vo4WS / @p37vo4

07/08/2021 at 08:23PM

96
#155 - Данил / @Danilkirienko81

06/28/2022 at 02:09PM

101
#156 - personlink / @personlink

04/07/2011 at 08:26AM

104
#157 - Shahor / @Shahor

12/29/2010 at 05:02PM

109
#158 - Stephen Paul Weber / @singpolyma

12/29/2010 at 02:46PM

158
#159 - Chippy ash / @_rayrain

02/18/2023 at 03:14PM

170
#160 - Benjamin Small / @ph1g

12/29/2010 at 04:21PM

600
#161 - GomsGame / @GameGoms

09/27/2023 at 03:46AM