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):
22
#451 - Peter Chynoweth / @pcchynoweth

05/23/2018 at 09:02PM

22
#452 - Jakob Föger / @drvolcano86

02/17/2023 at 03:22PM

22
#453 - Olivier Bégassat / @zk_evm

06/11/2023 at 09:09AM

23
#454 - James Cash / @jamesnvc

03/05/2011 at 05:12AM

23
#455 - Øystein Walle / @oysteinwalle

07/06/2011 at 04:24PM

23
#456 - jasper110 / @jasper110

09/22/2011 at 09:59AM

23
#457 - dm4 / @dm4

12/14/2011 at 07:27AM

23
#458 - rdt / @rdtft

01/08/2012 at 12:10AM

23
#459 - Dan Huang / @yuzeh

02/16/2012 at 10:18PM

23
#460 - David Sanders / @SandersCD

02/27/2012 at 02:24AM

23
#461 - matthewpeck / @matthewpeck

04/25/2012 at 04:37PM

23
#462 - Andrés Moya / @amoyafoss

06/22/2012 at 08:21AM

23
#463 - CJ Avilla / @cjav_dev

05/11/2014 at 12:30AM

23
#464 - Erik Buček / @_EnterNameHere_

11/14/2014 at 02:41PM

23
#465 - SilentFl / @Silent_Fl

01/27/2015 at 01:43PM

23
#466 - Arijus / @argshook

02/05/2018 at 12:57PM

24
#467 - Kevin Hamer / @khamer

03/04/2011 at 10:50PM

24
#468 - M. C. / @mczerkawski

03/15/2011 at 11:37PM

24
#469 - Thom Hughes / @thom_hughes_1

03/23/2011 at 02:13PM

24
#470 - eholic / @eholic

04/02/2011 at 05:03PM

24
#471 - Nomen Nescio / @vadtusan

04/13/2011 at 12:13PM

24
#472 - Malaney / @iamjh

04/26/2011 at 04:17AM

24
#473 - Jesús Espino / @jespinog

09/05/2011 at 01:08PM

24
#474 - Christopher Erin / @MCNormalMode

09/22/2011 at 03:33AM

24
#475 - Raphaël De Giusti / @raphdg

10/25/2011 at 03:29PM

24
#476 - kjrn / @kjrnleto

11/29/2011 at 06:56PM

24
#477 - Mac Heller-Ogden / @twosoul

05/01/2012 at 08:47PM

24
#478 - . / @cronesan

11/20/2012 at 07:08PM

24
#479 - Lari / @larifariman

04/17/2013 at 10:06PM

24
#480 - Jonathan Kim / @jonnykim

08/27/2013 at 07:09PM