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 508fe9f57acca60002000037

Stairs Indenting

Indent each line with <line number> whitespaces.

Start file
1
2
3
4
5
6
7
8
9
10
End file
 1
  2
   3
    4
     5
      6
       7
        8
         9
          10

View Diff

1,10c1,10
< 1
< 2
< 3
< 4
< 5
< 6
< 7
< 8
< 9
< 10
---
>  1
>   2
>    3
>     4
>      5
>       6
>        7
>         8
>          9
>           10

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 163 remaining solutions by signing in and submitting your own entry
#164 Lim Han / @tagore79 - Score: 69 - 11/04/12 @ 14:19
1i <Esc>j2i <Esc>2i<Esc>j3i<Esc>i<Esc>3i <Esc>j4i <Esc>j5i <Esc>j6i <Esc>j7i <Esc>j8i <Esc>j9i <Esc>jh10i <Esc>j:21<BS><BS>wq!<CR>

0 comments


Created by: @dbrgn

164 active golfers, 355 entries

Leaderboard (lowest score wins):
12
#1 - Urtica dioica / @udioica

12/31/2012 at 01:30AM

12
#2 - Marco Hinz / @_mhinz_

05/22/2013 at 09:41AM

12
#3 - Petro Тrouq / @zulolosi

05/31/2013 at 09:59PM

12
#4 - Ingo / @ist3fani

07/30/2013 at 03:08PM

12
#5 - John Papanastasiou / @JohnPapps

08/27/2013 at 07:06PM

12
#6 - Sam Rose / @samwhoo

08/27/2013 at 07:10PM

12
#7 - Yann Moisan / @YannMoisan

01/03/2014 at 07:13PM

12
#8 - pikaren / @REALpikaren

01/06/2014 at 03:35PM

12
#9 - Domingue Justin / @_jdomingue

01/10/2014 at 05:50PM

12
#10 - Yiyang Chen / @yiyangc91

03/15/2014 at 05:05PM

12
#11 - John Braxler / @braxler

04/14/2014 at 01:48PM

12
#12 - pftb12345 / @pftb12345

04/12/2015 at 11:06PM

12
#13 - Jon Krause / @jkrause314

01/11/2016 at 01:44AM

12
#14 - trx / @trxdbg

10/17/2016 at 04:56AM

12
#15 - Christopher Erin / @MCNormalMode

01/18/2017 at 01:59AM

12
#16 - jn / @j1357924

08/24/2017 at 07:04PM

12
#17 - Turkey Man / @lvturkeyman

11/27/2017 at 03:03PM

12
#18 - BarbaJol / @drpproteus

01/11/2018 at 05:06PM

13
#19 - Conner McDaniel / @connermcd

10/30/2012 at 04:09PM

13
#20 - Rahul Krishnan / @rahulkrish

11/04/2012 at 04:59PM

13
#21 - Vasil Sakarov / @vsakarov

11/11/2012 at 07:57AM

13
#22 - xaizek / @xaizek

11/15/2012 at 09:05AM

13
#23 - Justin Love / @wondible

11/25/2012 at 10:26PM

13
#24 - Drew Neil / @nelstrom

11/27/2012 at 12:07AM

13
#25 - mattgibb / @mattgibb

11/27/2012 at 08:49PM

13
#26 - Jordan Eldredge / @captbaritone

12/01/2012 at 07:32AM

13
#27 - Kerson Hsiao / @KersonHsiao

01/03/2013 at 04:31AM

13
#28 - Joel Elkins / @dice_tea

03/05/2013 at 06:13AM

13
#29 - Trevor Powell / @DoomedBunnies

03/20/2013 at 11:18PM

13
#30 - Shoop Da Whoop / @ShoopDaWhoop8

06/06/2013 at 08:50PM