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

Numbering a List

Pretty simple, number the list.

Start file
line one
line two
line three
line four
line five
line six
line seven
line eight
End file
1. line one
2. line two
3. line three
4. line four
5. line five
6. line six
7. line seven
8. line eight

View Diff

1,8c1,8
< line one
< line two
< line three
< line four
< line five
< line six
< line seven
< line eight
---
> 1. line one
> 2. line two
> 3. line three
> 4. line four
> 5. line five
> 6. line six
> 7. line seven
> 8. line eight

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 653 remaining solutions by signing in and submitting your own entry
#654 Daniel Marín / @dmar1n - Score: 276 - 06/02/24 @ 10:16
<C-V>lljjjjjhhhjjjiI><C-V>jjjjjjji1. hi.<Esc>kkkkkkkhjk<C-V>jjjjjjjr.Vbbljjkk<Esc>jkh<C-V>jjjjlllllljjji1<Esc>iv<BS><C-V>hh<BS><BS><C-V>hh<BS><BS>kk<BS><BS><Esc>kkkkkkkbb<C-V>jjjjlllllljjjr1<C-V>jjjjjllllljjdjr2jr2r3jr4jr5jr6jr7jr8llih<BS>kk<BS><BS><Esc>kkkkkkk<C-V>jjjjjjja1<Esc>lhl<C-V>iiil<Esc>kkkkkkki kj<BS><BS><Esc>ji <Esc>ji j<BS><Esc>ji<Esc>li <Esc>ji<Esc>l hi<Esc>li <Esc>ji <Esc>ji <Esc>ji<Esc>li l:<BS><Esc>wqbbbllxi:<BS><Esc>:wq<CR>

0 comments


Created by: @khamer

654 active golfers, 1935 entries

Leaderboard (lowest score wins):
21
#361 - Avinash Baliga / @avinashbaliga

03/21/2011 at 02:41PM

21
#362 - drio / @drio

03/23/2011 at 10:06PM

21
#363 - Steve J at RF / @rfsteve

04/11/2011 at 12:41AM

21
#364 - Patrick Mosby / @halbtuerke

04/22/2011 at 12:55PM

21
#365 - Ilya Strukov / @i1ey

05/01/2011 at 04:37PM

21
#366 - Jason Axelson / @bostonvaulter

05/10/2011 at 05:28PM

21
#367 - Dan Berglund / @kjellout

05/11/2011 at 03:11PM

21
#368 - Dmitry Ivanov / @ethercrow

05/14/2011 at 01:39PM

21
#369 - Ian McCowan / @valrus

05/29/2011 at 06:31PM

21
#370 - William Hua / @attente

07/17/2011 at 01:27PM

21
#371 - Andrey Andreev / @andro_a

07/29/2011 at 02:22PM

21
#372 - drooooooooooo / @droooooooooooo

08/07/2011 at 05:57AM

21
#373 - Stanley Wang / @stanleynwang

08/25/2011 at 12:25PM

21
#374 - Ben Sherman / @bensherman

10/02/2011 at 05:57AM

21
#375 - murky-satyr / @m_satyr

10/16/2011 at 12:38AM

21
#376 - Dean / @thecamelwalk

10/18/2011 at 06:09AM

21
#377 - Andrei Litvin / @andy31416

11/17/2011 at 02:39AM

21
#378 - Robert / @NiedruRoberts

12/15/2011 at 09:45AM

21
#379 - Joe Nerdan / @JoeNerdan

12/19/2011 at 11:53PM

21
#380 - koozie / @koozie

02/14/2012 at 03:43PM

21
#381 - Chris Penkett / @chrispenkett

04/03/2012 at 09:22AM

21
#382 - Kenneth Waters / @gen_witt

11/13/2012 at 10:07PM

21
#383 - ajh / @AlexJHammel

12/24/2012 at 07:30PM

21
#384 - Stefan Leszkiewicz / @stefanlz

06/16/2013 at 12:37PM

21
#385 - curist / @curist

07/09/2013 at 09:46AM

21
#386 - cj / @cj01101

08/07/2013 at 10:51PM

21
#387 - Tim / @timwr

08/27/2013 at 07:28PM

21
#388 - Elias Dorneles / @eliasdorneles

09/03/2013 at 03:44PM

21
#389 - Andrew Crites / @ExplosionPills

09/12/2013 at 03:05PM

21
#390 - RobertT / @techrt2050

09/17/2013 at 05:51PM