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
#151 - Steve Morrow / @yawmark

03/05/2011 at 02:04AM

19
#152 - vg / @vimgolfer

03/05/2011 at 03:05AM

19
#153 - Bradly Feeley / @bradly

03/05/2011 at 04:38AM

19
#154 - Wei Dai / @clvv42

03/05/2011 at 05:08AM

19
#155 - Balkoth / @_Balkoth_

03/05/2011 at 08:42AM

19
#156 - Pete Johns / @johnsyweb

03/05/2011 at 09:49AM

19
#157 - Pavlo Klets / @p01nt

03/05/2011 at 11:03AM

19
#158 - iCross / @iCrossOfficial

03/05/2011 at 02:11PM

19
#159 - Michał Taszycki / @mehowte

03/05/2011 at 07:14PM

19
#160 - Paweu1kZ nbNeyIhH / @yUQlwsFpRSzxJFh

03/06/2011 at 01:53AM

19
#161 - Oleg Roshupkin / @jjjahson

03/06/2011 at 05:30AM

19
#162 - Ruy Diaz / @diazruy

03/07/2011 at 09:47PM

19
#163 - keo / @keo

03/07/2011 at 10:27PM

19
#164 - zDlZPSx zDlZPSx / @zDlZPSx

03/07/2011 at 11:37PM

19
#165 - woodythrower / @woodythrower

03/10/2011 at 02:16AM

19
#166 - Ash Searle / @hexmen

03/10/2011 at 06:31PM

19
#167 - Steven Occhipinti / @steveocchipinti

03/12/2011 at 10:48AM

19
#168 - aaaa3331 / @aaaa3331

03/13/2011 at 09:19PM

19
#169 - Kasper Bjørn Nielsen / @kasperbn

03/14/2011 at 06:25AM

19
#170 - Misha (Mike) Granin / @Granin

03/14/2011 at 12:52PM

19
#171 - Vitaly Kushner / @vkushner

03/15/2011 at 09:14PM

19
#172 - Aaron Jensen / @aaronjensen

03/18/2011 at 06:10AM

19
#173 - Andrew Dorman / @andydorman

03/18/2011 at 12:11PM

19
#174 - Ben Griffiths / @beng

03/21/2011 at 12:20AM

19
#175 - Jon Olick / @JonOlick

03/25/2011 at 04:14PM

19
#176 - Florian Vallen / @florianvallen

03/27/2011 at 11:17PM

19
#177 - JR Boyens / @jboyens

03/31/2011 at 03:10PM

19
#178 - Jeff Sacks / @jeff_sacks

04/01/2011 at 08:53PM

19
#179 - Mathias Bynens  / @mathias

04/07/2011 at 08:03PM

19
#180 - Utkarsh Kukreti / @utkarshkukreti

04/09/2011 at 11:07AM