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):
13
#61 - Scott Atkins / @scottrick49

09/01/2021 at 01:24PM

13
#62 - Rory Smith / @alan0buchanan

09/13/2021 at 11:28PM

13
#63 - Vahan / @Vahan00900245

10/06/2021 at 12:02PM

13
#64 - mevmev / @mevmev8

10/24/2021 at 01:42PM

13
#65 - Flimsy Giraffe / @flimsy_giraffe

12/01/2021 at 03:35AM

13
#66 - Jean George / @JeanGeo20504212

12/07/2021 at 09:10PM

13
#67 - POSIX / @po6ix

01/30/2022 at 07:30AM

13
#68 - shahanavaz m / @shahanavazm

02/20/2022 at 10:24PM

13
#69 - blabla zincou / @BZincou

03/22/2022 at 08:02PM

13
#70 - x03n046 / @x03n046

05/18/2022 at 06:41PM

13
#71 - russellzhaomao / @russellzhaomao

05/25/2022 at 04:22AM

13
#72 - Alex / @AlexanderHeatl2

05/31/2022 at 07:29PM

13
#73 - Qing Liu / @poeminlash

08/09/2022 at 04:22AM

13
#74 - Janzen / @__Coos

09/22/2022 at 02:05PM

13
#75 - 刘宏亮 / @AkeyCoy

09/24/2022 at 04:00PM

13
#76 - Omar Alawadhi / @OmarAla59544225

10/17/2022 at 11:06PM

13
#77 - James / @Dronak

11/04/2022 at 06:39PM

13
#78 - Thomas Hiron / @thomashiron

02/23/2023 at 03:28PM

13
#79 - steve / @steve35773420

03/04/2023 at 04:09PM

13
#80 - asirago / @asiragoo

12/12/2023 at 11:49PM

13
#81 - evgenii-kokorin / @evgenii-kokorin

02/14/2024 at 01:33PM

13
#82 - Peppa Pig / @PeppaPigSg

06/02/2024 at 06:56AM

13
#83 - Petro Mudrievskyj / @petemud

07/01/2024 at 10:41AM

13
#84 - Alexandre GV. / @alexandregv

07/13/2024 at 12:01AM

13
#85 - Colonelviied / @Colonelviied

08/07/2024 at 11:50PM

13
#86 - nickGPT / @nickandbro

08/28/2024 at 10:53PM

13
#87 - Suhaib Murshid / @suhaibm

09/07/2024 at 04:29AM

13
#88 - DayuanX / @DayuanX

10/09/2024 at 10:58AM

13
#89 - svsreerama / @svsreerama

12/28/2024 at 06:17PM

14
#90 - Carsten Cordes / @badagent86

02/08/2022 at 11:30PM