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):
26
#61 - William Dunand / @wdunand

12/02/2011 at 07:59AM

26
#62 - じょんあば / @john_ababa

02/23/2012 at 10:02AM

27
#63 - Larry Marburger / @lmarburger

12/29/2010 at 05:26PM

27
#64 -  Ikhsan Maulana / @ixandidu

01/02/2011 at 10:47AM

27
#65 - vg / @vimgolfer

01/29/2011 at 02:49AM

27
#66 - Yann Moisan / @YannMoisan

02/03/2013 at 08:31PM

27
#67 - cj / @cj01101

01/30/2014 at 09:50PM

27
#68 - Joonas Pihlajamaa / @jokkebk

02/21/2014 at 09:19AM

27
#69 - Paul Draghicescu / @pdragy

03/28/2018 at 11:04PM

28
#70 - Behnam Esfahbod / @zwnj

12/30/2010 at 12:23PM

28
#71 - Paul King / @nrocy

01/10/2011 at 02:27PM

28
#72 - Christopher Brew / @Seph1rothVII

01/31/2012 at 10:06PM

28
#73 - Tyler / @tylerbindon

03/31/2013 at 11:00PM

29
#74 - kuhout / @kuhout

12/29/2010 at 08:27PM

29
#75 - Mike Plotz / @antisuji

12/29/2010 at 10:52PM

29
#76 - Frank Perez / @frankperez87

12/21/2011 at 09:30PM

30
#77 - Francisco Dibar / @frandibar

01/13/2011 at 02:27AM

30
#78 - mightyfoo / @mightyfoo

05/26/2011 at 11:05AM

30
#79 - Matthew Cupps / @matthewcupps

12/21/2011 at 08:57PM

30
#80 - Saki Gw / @Sakigw

02/06/2017 at 08:04PM

31
#81 - Leonard Chin / @lchin

12/29/2010 at 05:47PM

31
#82 - h_east (トロッコ6個) / @h_east

01/06/2011 at 04:42PM

31
#83 - t_lini / @t_lini

01/09/2011 at 05:37PM

31
#84 - Xavier Nayrac / @lkdjiin

12/30/2011 at 10:37AM

31
#85 - Patrick Martin / @PatrickDMartin

07/05/2021 at 07:21PM

32
#86 - Tom Adams / @holizz

12/29/2010 at 04:28PM

32
#87 - Utkarsh Kukreti / @utkarshkukreti

12/29/2010 at 05:32PM

32
#88 - Dave / @zzdave13

07/31/2011 at 09:42PM

32
#89 - Rik Lomas / @riklomas

12/29/2011 at 09:25PM

32
#90 - Marcin Szamotulski / @me_coot

11/29/2012 at 09:21AM