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
#181 - Jason Miller / @Aidenn0

04/13/2011 at 12:17AM

19
#182 - Raeez / @raeez

04/14/2011 at 05:03AM

19
#183 - Daniel Harrington / @rubiii

04/15/2011 at 11:12AM

19
#184 - Mikael Gustavsson / @slvmnd

04/16/2011 at 01:40AM

19
#185 - Shawn Tice / @shtice

04/26/2011 at 04:44AM

19
#186 - Cam Thompson / @camthompson

04/29/2011 at 12:14AM

19
#187 - xhtmlforum / @xhtmlforum

05/18/2011 at 07:09AM

19
#188 - Justin Hale / @jxl

05/25/2011 at 01:11PM

19
#189 - icdark / @icdark

05/30/2011 at 12:09AM

19
#190 - Stuart Gale / @bishboria

06/11/2011 at 10:29PM

19
#191 - Johan Sveholm / @rymdtjuren

06/22/2011 at 06:36AM

19
#192 - Julien Durillon / @juuduu

06/28/2011 at 06:40PM

19
#193 - Corey Glynn / @albedoa

07/07/2011 at 06:01AM

19
#194 - 42hitchhiker / @42hitchhiker

07/12/2011 at 12:39PM

19
#195 - Sammasati / @sammasati0

07/16/2011 at 03:58AM

19
#196 - xaizek / @xaizek

07/17/2011 at 03:57PM

19
#197 - Junfeng / @junfeng

08/04/2011 at 08:31AM

19
#198 - Gary Rennie / @TheGazler

08/04/2011 at 08:06PM

19
#199 - Stéphane Leibovitsch / @sleibo

08/23/2011 at 08:11PM

19
#200 - Simon Scarfe / @simonscarfe

08/31/2011 at 10:24PM

19
#201 - Theodore Finn Gast / @tfgast

09/01/2011 at 11:42AM

19
#202 - Tim Tsu / @vimgolfpunk

09/03/2011 at 03:16PM

19
#203 - Justin Love / @wondible

09/11/2011 at 12:46PM

19
#204 - こばばー / @symmet

09/17/2011 at 07:19PM

19
#205 - Perry Hung / @fractalbroccoli

10/02/2011 at 07:16AM

19
#206 - Jer Wilson / @superjercom

10/29/2011 at 02:47AM

19
#207 - vimja / @vimja666

11/01/2011 at 01:24AM

19
#208 - nicolas bo / @thevegeta

11/05/2011 at 01:29PM

19
#209 - Matt Woelk / @MattWoelk

11/12/2011 at 12:00AM

19
#210 - Nathan Ehresman / @nehresman

11/16/2011 at 07:43PM