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
#241 - Steve Tjoa / @stevetjoa

07/03/2013 at 07:24PM

19
#242 - powertomato / @powertomato

07/11/2013 at 09:40AM

19
#243 - Bradd Szonye / @bszonye

07/12/2013 at 07:13AM

19
#244 - Woojung Kim 김우중 / @_kimwz

07/15/2013 at 04:44AM

19
#245 - Stephen Drodge / @sjdrodge

09/17/2013 at 03:17PM

19
#246 - James T. Huggett / @Jmeshka

10/03/2013 at 05:28PM

19
#247 - Marcin Szamotulski / @me_coot

10/20/2013 at 01:15PM

19
#248 - Casey Dwyer / @caseydwyer

10/24/2013 at 10:54PM

19
#249 - Fnord Everywhere / @FnordE

10/31/2013 at 11:20AM

19
#250 - Tzipan / @Tzipan

11/03/2013 at 08:36PM

19
#251 - Daniel Marjenburgh / @dmarjenburgh

11/17/2013 at 01:47PM

19
#252 - Ali El Amine / @Allouch95

02/04/2014 at 09:43AM

19
#253 - Joonas Pihlajamaa / @jokkebk

02/11/2014 at 01:53PM

19
#254 - Jonas K. / @geratheon

02/19/2014 at 01:11PM

19
#255 - Yiyang Chen / @stackngxc

03/09/2014 at 11:17AM

19
#256 - God / @iamgod

03/13/2014 at 05:25PM

19
#257 - Sntano Euhsk / @SEuhsk

06/04/2014 at 09:28AM

19
#258 - John Meisner / @jmeisned

06/26/2014 at 05:19AM

19
#259 - Marco Biasini / @biasmv

07/27/2014 at 06:36PM

19
#260 - kemar / @le_kemar

08/25/2014 at 11:57AM

19
#261 - eBrnd / @eBrnd

11/02/2014 at 09:29PM

19
#262 - ゆきみ / @edp02

12/21/2014 at 09:17AM

19
#263 - Matt / @mcr05

12/29/2014 at 11:29PM

19
#264 - mark0829 / @mark0829

02/03/2015 at 03:01PM

19
#265 - Jonas Nockert / @lemonad

10/14/2015 at 02:15PM

19
#266 - James Potter / @JJPotterkowski

11/03/2015 at 09:09PM

19
#267 - Phill / @PhillipHermans

11/19/2015 at 10:01PM

19
#268 - ハチポケッツ / @8pockets

11/25/2015 at 12:12AM

19
#269 - Chenut Ludovic / @7Brwa7

04/05/2016 at 09:43AM

19
#270 - Ram Tamtam / @ramtamtamtam

07/01/2016 at 11:00AM