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 198 remaining solutions by signing in and submitting your own entry
#199 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

199 active golfers, 479 entries

Leaderboard (lowest score wins):
14
#91 - Matt Mulder / @mxmul

12/14/2012 at 02:00AM

14
#92 - Michael / @patheticpat

12/16/2012 at 06:26PM

14
#93 - Édouard M'tou / @DouardM

12/21/2012 at 05:08PM

14
#94 - DR / @dde81

12/23/2012 at 01:19AM

14
#95 - Alec Goebel / @zego5360

01/04/2013 at 05:42PM

14
#96 - Asmund / @herrasbe

01/12/2013 at 05:43PM

14
#97 - Steve Tjoa / @stevetjoa

02/04/2013 at 08:20PM

14
#98 - Steven Herbst / @transistorman

02/25/2013 at 01:14AM

14
#99 - Addisu Taddese / @azeey

03/02/2013 at 07:23PM

14
#100 - gnobbles / @gnobbles

03/31/2013 at 12:09AM

14
#101 - Tyler / @tylerbindon

04/02/2013 at 06:50AM

14
#102 - Piotr Śniegowski / @PiotrSniegowski

06/06/2013 at 12:48PM

14
#103 - cj / @cj01101

08/08/2013 at 08:19PM

14
#104 - Bart of Denver / @bartofdenver

08/13/2013 at 12:29AM

14
#105 - Ed Zukowski / @dataoverflow

08/27/2013 at 07:23PM

14
#106 - Tim Mower / @timmow

08/27/2013 at 07:58PM

14
#107 - James / @Dronak

09/03/2013 at 11:15PM

14
#108 - RobertT / @techrt2050

09/10/2013 at 04:12AM

14
#109 - isayoldchap / @isayoldchap

09/11/2013 at 06:26AM

14
#110 - Stephen Drodge / @sjdrodge

09/19/2013 at 02:39AM

14
#111 - brett / @brettyukich

09/21/2013 at 10:19PM

14
#112 - Casey Dwyer / @caseydwyer

10/23/2013 at 12:28PM

14
#113 - bunnies president / @bunnies4p

10/27/2013 at 10:50PM

14
#114 - h2g2guy / @h2g2guy

11/01/2013 at 05:51AM

14
#115 - Sam Burk / @smwbk

12/21/2013 at 04:41AM

14
#116 - Quota / @Quotad

02/04/2014 at 10:01AM

14
#117 - Joonas Pihlajamaa / @jokkebk

02/25/2014 at 11:26AM

14
#118 - Thomas GUILLORY / @thomasguillory

03/12/2014 at 06:02PM

14
#119 - Endir / @Endir2

04/18/2014 at 01:24PM

14
#120 - Patrick Pitoscia / @Patrick03960431

08/20/2014 at 02:35AM