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):
19
#151 - Miguel Sánchez / @miguelsr1987

11/07/2012 at 04:11PM

19
#152 - Татос Бабаджанян / @snpdevone

11/12/2012 at 10:57AM

19
#153 - makala noble / @mnoble01

11/13/2012 at 08:32AM

19
#154 - Omer Lachish / @rauchy

11/18/2012 at 07:11AM

19
#155 - Jesper Petersson / @PeterssonJesper

11/19/2012 at 01:18PM

19
#156 - Garrett Oreilly / @garrett_oh

11/21/2012 at 05:51AM

19
#157 - Brian Stolz / @tecnobrat

11/21/2012 at 05:05PM

19
#158 - Ravi S Sinha / @ambidextrousTx

11/26/2012 at 08:47AM

19
#159 - Matt Walker / @_walkermatt

11/28/2012 at 06:07PM

19
#160 - Nathan / @NathanHarperoni

08/07/2013 at 02:36PM

19
#161 - Jacob Branaugh / @jacobbranaugh

06/25/2014 at 09:06PM

20
#162 - ajh / @AlexJHammel

12/27/2012 at 03:23PM

20
#163 - vg / @vg53210350

10/29/2018 at 06:05PM

22
#164 - Paul Gideon Dann / @giddie

10/31/2012 at 02:10PM

22
#165 - Adelar S. Queiróz / @adelarsq

01/31/2013 at 11:08PM

24
#166 - Murali Suriar / @msuriar

11/17/2012 at 10:59AM

25
#167 - Nicolas Friedli / @NicolasFriedli

10/31/2012 at 09:24PM

25
#168 - Raphael / @rnstlr

11/26/2013 at 11:36PM

25
#169 - Nicholas Lee-Hone / @NicholasLeeHone

10/13/2014 at 08:12PM

27
#170 - Eric Andres / @eric_m_andres

12/07/2012 at 08:54PM

33
#171 - Daniel Allen Deutsch / @cmmn_nighthawk

08/24/2016 at 01:10AM

33
#172 - Caroline / @carokenworthy

08/24/2016 at 02:06AM

34
#173 - bogwonch / @bogwonch

10/30/2012 at 08:03PM

35
#174 - Alex Bartol / @alexbartol

05/05/2015 at 09:03PM

46
#175 - Max Sherman / @johnislarry

11/12/2012 at 12:22PM

69
#176 - Lim Han / @tagore79

11/04/2012 at 02:19PM