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

176 active golfers, 387 entries

Leaderboard (lowest score wins):
14
#91 - Addisu Taddese / @azeey

03/02/2013 at 07:23PM

14
#92 - gnobbles / @gnobbles

03/31/2013 at 12:09AM

14
#93 - Tyler / @tylerbindon

04/02/2013 at 06:50AM

14
#94 - Piotr Śniegowski / @PiotrSniegowski

06/06/2013 at 12:48PM

14
#95 - cj / @cj01101

08/08/2013 at 08:19PM

14
#96 - Bart of Denver / @bartofdenver

08/13/2013 at 12:29AM

14
#97 - Ed Zukowski / @dataoverflow

08/27/2013 at 07:23PM

14
#98 - Tim Mower / @timmow

08/27/2013 at 07:58PM

14
#99 - James / @Dronak

09/03/2013 at 11:15PM

14
#100 - RobertT / @techrt2050

09/10/2013 at 04:12AM

14
#101 - isayoldchap / @isayoldchap

09/11/2013 at 06:26AM

14
#102 - Stephen Drodge / @sjdrodge

09/19/2013 at 02:39AM

14
#103 - brett / @brettyukich

09/21/2013 at 10:19PM

14
#104 - Casey Dwyer / @caseydwyer

10/23/2013 at 12:28PM

14
#105 - bunnies president / @bunnies4p

10/27/2013 at 10:50PM

14
#106 - h2g2guy / @h2g2guy

11/01/2013 at 05:51AM

14
#107 - Sam Burk / @smwbk

12/21/2013 at 04:41AM

14
#108 - Quota / @Quotad

02/04/2014 at 10:01AM

14
#109 - Joonas Pihlajamaa / @jokkebk

02/25/2014 at 11:26AM

14
#110 - Thomas GUILLORY / @thomasguillory

03/12/2014 at 06:02PM

14
#111 - Endir / @Endir2

04/18/2014 at 01:24PM

14
#112 - Patrick Pitoscia / @Patrick03960431

08/20/2014 at 02:35AM

14
#113 - Dan Sackett / @dansackett

10/12/2014 at 07:15PM

14
#114 - eBrnd / @eBrnd

11/07/2014 at 06:39PM

14
#115 - Oliver Christ / @0liverChrist

02/16/2015 at 02:32PM

14
#116 - Skúli Jóhannsson / @skulibj

06/28/2015 at 09:15PM

14
#117 - Sean Hill / @insecteanSean

10/03/2015 at 06:24AM

14
#118 - Will / @obiwan__k3n00bi

08/25/2016 at 03:23AM

14
#119 - Gurukandhamoorthi / @Gurukandhamoor1

08/02/2017 at 04:28PM

14
#120 - Paul Schaefer / @schaeferpp

05/24/2019 at 03:10PM