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

198 active golfers, 478 entries

Leaderboard (lowest score wins):
14
#61 - Danilo / @dbrgn

10/30/2012 at 03:19PM

14
#62 - Marcin Szamotulski / @me_coot

10/30/2012 at 07:53PM

14
#63 - mix irving / @whimful

10/30/2012 at 11:26PM

14
#64 - Underhill Labs / @underhilllabs

10/30/2012 at 11:46PM

14
#65 - Tallak Tveide / @tallakt

10/31/2012 at 07:47AM

14
#66 - Nathan / @boysetsfrog

10/31/2012 at 10:13AM

14
#67 - Sisso Ananda / @365DayToNibbana

10/31/2012 at 10:20PM

14
#68 - Peter Anselmo / @peter_anselmo

11/01/2012 at 09:02PM

14
#69 - mazemult / @mazemult

11/02/2012 at 12:29AM

14
#70 - Pete Bevin / @pbevin

11/02/2012 at 05:25PM

14
#71 - G. Ahtune / @gahtune

11/03/2012 at 09:38AM

14
#72 - kana / @kana1

11/04/2012 at 02:52AM

14
#73 - Mikko Loponen / @lopossumi

11/04/2012 at 03:35PM

14
#74 - Victor Ramirez / @virako

11/05/2012 at 03:25AM

14
#75 - じょんあば / @john_ababa

11/05/2012 at 02:08PM

14
#76 - Hubba / @HubbaBubbaFett

11/05/2012 at 08:38PM

14
#77 - Richard Howard / @rhowardiv

11/07/2012 at 04:58AM

14
#78 - Davidovich / @IamDavidovich

11/08/2012 at 01:33AM

14
#79 - tridactyla / @tridactyla

11/09/2012 at 10:28AM

14
#80 - Daniel / @dpaneda

11/10/2012 at 08:36PM

14
#81 - buz / @buzbone

11/11/2012 at 07:05PM

14
#82 - a24f0600 / @a24f0600

11/13/2012 at 07:42AM

14
#83 - 4L41N / @4L41N1

11/13/2012 at 07:52AM

14
#84 - Kerry Burke / @kurver

11/13/2012 at 11:43PM

14
#85 - Emile Swarts / @EmileSwarts

11/18/2012 at 08:31PM

14
#86 - Timothée Carry / @pixelastic

11/20/2012 at 09:30AM

14
#87 - blamitter ✏️ / @blamitter

11/21/2012 at 04:36PM

14
#88 - Lieven Keersmaekers / @LievenKeersmaek

11/24/2012 at 12:41PM

14
#89 - Felix Ingram / @lllamaboy

11/27/2012 at 08:30PM

14
#90 - T / @tea_sea

11/27/2012 at 08:37PM