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):
20
#331 - Bart / @oneofmanybarts

07/15/2014 at 10:06AM

20
#332 - Dmitriy / @_dpy_

08/21/2014 at 08:35PM

20
#333 - benekeusz / @benekeusz

12/09/2014 at 10:15AM

20
#334 - Josu Oyanguren / @josuoyanguren

12/18/2014 at 05:10PM

20
#335 - Filipe Almeida / @filipe_almeida

01/01/2015 at 03:38AM

20
#336 - Dr Rev J. “I am not a bot!” Kirchartz, KSC, KHS / @JKirchartz

01/18/2015 at 02:26AM

20
#337 - @sndsgns / @sndsgns

02/27/2015 at 02:08AM

20
#338 - TheProgrammer971 / @tp971

03/14/2015 at 03:03PM

20
#339 - cg.sg.im / @CoGe_StGa_idma

04/07/2015 at 11:44PM

20
#340 - marcelo jacobus / @marcelo_jacobus

04/10/2015 at 09:50PM

20
#341 - Endre Galaczi / @galacziendre

08/08/2015 at 07:58PM

20
#342 - Michael Buckley / @apolatg

02/13/2016 at 09:57PM

20
#343 - ryo_n / @ryo_n

02/15/2016 at 05:01AM

20
#344 - Johnny Zhou / @JohnnyZhou01

04/26/2016 at 12:33PM

20
#345 - Pavol Slamka / @Archipedes

07/13/2016 at 03:18PM

20
#346 - Will / @obiwan__k3n00bi

08/18/2016 at 04:37AM

20
#347 - Michał Dytko / @DytkoM

12/23/2016 at 12:05PM

20
#348 - sidyll / @sidyll

08/22/2018 at 05:29PM

20
#349 - Grant / @grant_7788

05/22/2019 at 06:13AM

20
#350 - Aioriya / @AioriyaDonk

05/09/2020 at 07:11PM

20
#351 - einrock / @einrock

09/11/2024 at 03:27AM

21
#352 - Asmund / @herrasbe

03/05/2011 at 06:18AM

21
#353 - timhoa / @timhoa

03/05/2011 at 03:16PM

21
#354 - Gregory E. Sanderson / @gelendir

03/05/2011 at 04:51PM

21
#355 - Helder Inacio / @inaciohj

03/07/2011 at 10:35PM

21
#356 - paulfariello ✏️ / @paulfariello

03/08/2011 at 12:27PM

21
#357 - Guillaume Bonnoron / @gbonnoron

03/08/2011 at 07:22PM

21
#358 - Tact Overflow / @muppling

03/13/2011 at 01:09AM

21
#359 - Nicola Paolucci / @durdn

03/14/2011 at 03:02PM

21
#360 - Dmitry Ermolov / @dim_an

03/21/2011 at 10:33AM