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):
26
#571 - Patrick Pitoscia / @Patrick03960431

08/05/2014 at 02:52AM

26
#572 - Cristian Lupașcu / @clupasq

02/08/2016 at 12:08PM

26
#573 - Brandon Height / @Lask0x

08/08/2017 at 04:39PM

26
#574 - autological_being / @metaporias

05/03/2018 at 05:38PM

26
#575 - Luis Rodriguez / @luisthecoder

11/18/2018 at 12:22AM

26
#576 - Jason / @roosjason

07/04/2020 at 02:14PM

26
#577 - Zain.Edogawa / @EdogawaZain

07/14/2022 at 05:44PM

27
#578 - Neal Lewis / @neal_lewis

04/02/2011 at 07:13AM

27
#579 - Mathias Fussenegger / @mfussenegger

06/06/2011 at 09:15PM

27
#580 - Enric Lluelles / @enriclluelles

07/29/2011 at 01:08AM

27
#581 - Chris Soyars / @ChrisSoyars

08/18/2011 at 11:50PM

27
#582 - Rene Duquesnoy / @renedq

08/26/2011 at 02:42PM

27
#583 - Chris McKinnel / @chrismckinnel

10/24/2011 at 03:16PM

27
#584 - eyeyen / @eyeyen

11/22/2011 at 09:47PM

27
#585 - nobu.watanabe / @watanob

04/27/2012 at 03:20PM

27
#586 - Steven Wiggins / @StevenWiggins

03/14/2014 at 03:58PM

27
#587 - Peter Strawson / @PeterStrawson

04/08/2014 at 10:15PM

27
#588 - Armen Shimoon / @ArmenShimoon

05/11/2014 at 11:53AM

27
#589 - Jake Eaton / @Jake__Eaton

06/01/2014 at 07:17AM

28
#590 - jacobcr / @jacobcr

08/24/2011 at 06:58AM

28
#591 - Viswanath Sivakumar / @viswanathgs

08/27/2012 at 12:11AM

28
#592 - mwcz / @mwcz

10/30/2013 at 08:20PM

29
#593 - Daniel Stockton / @danielstockton

03/24/2011 at 01:49PM

29
#594 - Serguei Filimonov / @serguei4dev

09/30/2011 at 07:43PM

29
#595 - Burkhard Zimmermann / @BurkZimm

01/06/2012 at 10:46PM

29
#596 - Fabien Cazenave / @fabi1cazenave

02/25/2012 at 11:05AM

29
#597 - Bernhard Urban-Forster / @lewurm

06/24/2012 at 04:17PM

29
#598 - fa / @twiteciop

08/07/2014 at 02:23PM

29
#599 - Alex Bartol / @alexbartol

05/06/2015 at 05:54AM

29
#600 - Cormac Relf / @cormacrelf

06/29/2015 at 03:31AM