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
#211 - Paul Kalupnieks / @kalupa

11/24/2011 at 12:43PM

19
#212 - You-Siang Lin / @yslinnctu

11/29/2011 at 06:19AM

19
#213 - Ben Somers / @somanyrobots

11/30/2011 at 02:13AM

19
#214 - Arton0306 / @Arton0306

12/18/2011 at 12:24PM

19
#215 - Jaime A. Sánchez / @jashbeta

12/21/2011 at 09:54PM

19
#216 - Pei-Lun Lee / @ypcatw

12/26/2011 at 04:03AM

19
#217 - derp derp / @derp__

01/02/2012 at 05:08PM

19
#218 - Xavier Nayrac / @lkdjiin

01/08/2012 at 12:07PM

19
#219 - Albin Olsson / @sentenser

01/15/2012 at 05:37PM

19
#220 - Wataru Fukunaga / @wataru420

01/19/2012 at 05:09PM

19
#221 - Song Zheng / @songz

01/22/2012 at 11:36PM

19
#222 - Bjørn Einar Bjartnes / @bjartnes

01/27/2012 at 01:54PM

19
#223 - Calvin Condon / @ccondon

01/30/2012 at 05:24AM

19
#224 - Tesnorth / @Tesnorth

01/30/2012 at 10:44PM

19
#225 - Renat Aksitov / @Korvin79

02/08/2012 at 12:05AM

19
#226 - Jason Parrott / @jparrott

02/11/2012 at 09:30PM

19
#227 - Adrien Friggeri / @qelf

02/25/2012 at 05:27AM

19
#228 - Peter Anselmo / @peter_anselmo

03/13/2012 at 01:09PM

19
#229 - Christian Helbling / @friendly_coder

03/24/2012 at 12:02AM

19
#230 - Nolen Royalty / @NolenRoyalty

04/26/2012 at 10:14PM

19
#231 - ise0615 / @ise0615

05/06/2012 at 02:00AM

19
#232 - VimGolfDzNrSQleot / @VimGolfDzNrSQle

05/10/2012 at 11:37PM

19
#233 - Tom Sisk / @TomSisk

07/15/2012 at 08:41PM

19
#234 - Daniel S / @smatter0ne

07/17/2012 at 10:32PM

19
#235 - Kerson Hsiao / @KersonHsiao

07/18/2012 at 05:28AM

19
#236 - Chun Yang / @cccyang

07/27/2012 at 09:25AM

19
#237 - Слава / @slava_and_ipad

08/08/2012 at 03:29PM

19
#238 - Aaron Miller / @apage43

08/14/2012 at 07:50AM

19
#239 - Conner McDaniel / @connermcd

09/25/2012 at 12:43AM

19
#240 - Kai Yuan / @kentyuan

06/02/2013 at 07:36PM