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

175 active golfers, 384 entries

Leaderboard (lowest score wins):
14
#61 - Pete Bevin / @pbevin

11/02/2012 at 05:25PM

14
#62 - G. Ahtune / @gahtune

11/03/2012 at 09:38AM

14
#63 - kana / @kana1

11/04/2012 at 02:52AM

14
#64 - Mikko Loponen / @lopossumi

11/04/2012 at 03:35PM

14
#65 - Victor Ramirez / @virako

11/05/2012 at 03:25AM

14
#66 - 無ん垢の叫び / @john_ababa

11/05/2012 at 02:08PM

14
#67 - Hubba / @HubbaBubbaFett

11/05/2012 at 08:38PM

14
#68 - Richard Howard / @rhowardiv

11/07/2012 at 04:58AM

14
#69 - Davidovich / @IamDavidovich

11/08/2012 at 01:33AM

14
#70 - tridactyla / @tridactyla

11/09/2012 at 10:28AM

14
#71 - Daniel / @dpaneda

11/10/2012 at 08:36PM

14
#72 - buz / @buzbone

11/11/2012 at 07:05PM

14
#73 - a24f0600 / @a24f0600

11/13/2012 at 07:42AM

14
#74 - 4L41N / @4L41N1

11/13/2012 at 07:52AM

14
#75 - Kerry Burke / @kurver

11/13/2012 at 11:43PM

14
#76 - (Emile (Swarts)) / @EmileSwarts

11/18/2012 at 08:31PM

14
#77 - Timothée Carry / @pixelastic

11/20/2012 at 09:30AM

14
#78 - blamitter ✏️ / @blamitter

11/21/2012 at 04:36PM

14
#79 - Lieven Keersmaekers / @LievenKeersmaek

11/24/2012 at 12:41PM

14
#80 - Felix Ingram / @lllamaboy

11/27/2012 at 08:30PM

14
#81 - Tom Cammann / @tea_sea

11/27/2012 at 08:37PM

14
#82 - Matt Mulder / @mxmul

12/14/2012 at 02:00AM

14
#83 - Michael / @patheticpat

12/16/2012 at 06:26PM

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

12/21/2012 at 05:08PM

14
#85 - DR / @dde81

12/23/2012 at 01:19AM

14
#86 - Alec Goebel / @zego5360

01/04/2013 at 05:42PM

14
#87 - Asmund / @herrasbe

01/12/2013 at 05:43PM

14
#88 - Steve Tjoa / @stevetjoa

02/04/2013 at 08:20PM

14
#89 - Steven Herbst / @transistorman

02/25/2013 at 01:14AM

14
#90 - Addisu Taddese / @azeey

03/02/2013 at 07:23PM