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):
19
#271 - Ryan Marcotte / @ryanjmarcotte

11/25/2016 at 12:07AM

19
#272 - Solomon / @Trugbildjaeger

08/31/2017 at 10:58AM

19
#273 - david quarles / @davidequarles

11/28/2017 at 08:04AM

19
#274 - Ron Holt / @ron_holt

08/14/2019 at 08:17AM

19
#275 - Jason Neylon / @jasonneylon

04/12/2020 at 11:19AM

19
#276 - Marius Ropotica / @cipmar

04/02/2024 at 06:40PM

19
#277 - Brando / @brandonce

02/12/2025 at 08:24AM

20
#278 - h_east (トロッコ6個) / @h_east

03/04/2011 at 11:52PM

20
#279 - Sergey Doroshenko / @dorserg

03/05/2011 at 01:42PM

20
#280 - Rocky Meza / @rockymeza

03/05/2011 at 05:26PM

20
#281 - Olof Hellquist / @quistoh

03/05/2011 at 08:15PM

20
#282 - Oleg Pestov / @opestov

03/08/2011 at 12:07PM

20
#283 - appamatto / @appamatto

03/14/2011 at 10:14PM

20
#284 - Stanislav / @sseletskiy

03/17/2011 at 07:18AM

20
#285 - Eivind Jahren / @HaskellElephant

03/24/2011 at 07:45PM

20
#286 - Scott Nielsen / @smniel

03/25/2011 at 07:54PM

20
#287 - joshi / @VimFu

04/09/2011 at 03:11AM

20
#288 - Wyciorr / @wyciorr

04/14/2011 at 09:28AM

20
#289 - Christian Oudard / @ChristianOudard

04/15/2011 at 02:43PM

20
#290 - asdasdasdasd / @asdary183h74891

04/28/2011 at 11:04AM

20
#291 - Dragan Cvetinovic / @kawkafi

05/06/2011 at 10:37PM

20
#292 - Jean-Rene David / @jeanrenedavid

05/11/2011 at 11:03PM

20
#293 - Mattiassich Ákos / @mattiassicha

06/01/2011 at 12:38PM

20
#294 - Toto l'haricot / @nico_le_terribl

06/19/2011 at 03:57AM

20
#295 - Kristoffer Roupé / @kitofr

07/29/2011 at 11:49AM

20
#296 - Torben Rasmussen / @rasmustorben

08/12/2011 at 11:34PM

20
#297 - Pascal Hartig / @passy

08/29/2011 at 12:08PM

20
#298 - Daniel Lundin / @danielundin

11/27/2011 at 08:24PM

20
#299 - Chaiporn Jaikaeo / @cjaikaeo

11/28/2011 at 01:56PM

20
#300 - Mislav Marohnić / @mislav

12/06/2011 at 04:48PM