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):
29
#601 - Willy / @Willy6932612311

09/04/2024 at 08:58PM

30
#602 - Manuel Korfmann / @mkorfmann

03/26/2011 at 06:07PM

30
#603 - Toshio Maki / @Kirika_K2

04/24/2011 at 07:48AM

30
#604 - tdirrenb / @tdirrenb

05/14/2011 at 06:52PM

30
#605 - Jean-Christophe Cyr / @jccyr01

06/19/2011 at 02:21AM

30
#606 - Nicolas Friedli / @NicolasFriedli

11/04/2012 at 05:07PM

30
#607 - Dave Derderian / @funayman

03/11/2014 at 09:37PM

30
#608 - Omer Lachish / @rauchy

08/03/2014 at 01:28PM

30
#609 - Aaron Fortune / @aaron_fortune

09/20/2015 at 04:09AM

31
#610 - Casey Howard / @caseyhoward

04/07/2011 at 01:29AM

31
#611 - Takuya Nishigori / @nishigo_ri

04/24/2011 at 07:52AM

31
#612 - Ivo Dancet / @caifara

12/03/2011 at 09:30AM

33
#613 - Dmitry Teslenko / @krab_mozga

03/05/2011 at 08:50AM

33
#614 - Joey Beninghove / @joeybeninghove

04/27/2011 at 02:03AM

33
#615 - Andy C / @ggez44

10/16/2012 at 03:22AM

34
#616 - John Lemp / @duckworth

03/08/2011 at 11:53AM

34
#617 - Roy van der Meij / @royvandermeij

03/15/2011 at 10:40AM

34
#618 - Dan Masquelier / @danmasq

07/01/2011 at 03:46PM

34
#619 - Matt Donahoe / @mdonahoe

10/15/2011 at 02:46AM

34
#620 - Christopher Brew / @Seph1rothVII

01/10/2012 at 10:30PM

34
#621 - Yariv / @yarivb

08/03/2014 at 01:42PM

35
#622 - TchiKong / @tchikong

08/23/2011 at 06:31PM

35
#623 - Yu / @Yuyah1

09/13/2013 at 07:51AM

36
#624 - Jeremy Holland / @awebneck

04/18/2011 at 08:28PM

36
#625 - Mr. Big Cat / @miaout17

08/05/2011 at 02:50AM

37
#626 - Eric Bock / @ericbock

03/25/2011 at 06:33AM

40
#627 - Aaron / @_Lordofthevoid_

12/05/2019 at 04:22PM

43
#628 - bacardi55 / @bacardi555

03/30/2011 at 12:44PM

43
#629 - Loc Nguyen / @Loc_Sic

03/30/2011 at 03:01PM

44
#630 - Esteban Ordano / @eordano

04/07/2011 at 04:21AM