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):
13
#31 - Trevor Powell / @DoomedBunnies

03/20/2013 at 11:18PM

13
#32 - Shoop Da Whoop / @ShoopDaWhoop8

06/06/2013 at 08:50PM

13
#33 - Bradd Szonye / @bszonye

07/13/2013 at 09:47AM

13
#34 - Aaron Bieber / @aaronbieber

07/19/2013 at 11:01PM

13
#35 - Raphaël Saunier / @RaphaelSaunier

08/27/2013 at 07:21PM

13
#36 - Florian Rathgeber / @frathgeber

08/27/2013 at 07:41PM

13
#37 - US Dollar Price / @USDollarPrice

11/04/2013 at 08:58PM

13
#38 - Salleyron Julien / @juguul

01/06/2014 at 02:28PM

13
#39 - Fake Name / @The_Real_User

01/09/2014 at 03:25AM

13
#40 - Jared Meyering / @Jmeyering

03/12/2014 at 06:15PM

13
#41 - ZorgroZ / @ZorgroZ

04/12/2014 at 03:00PM

13
#42 - Felipe Jaramillo F / @mrfelipe

04/14/2014 at 02:06AM

13
#43 - David Shields / @salacio

04/22/2014 at 08:08PM

13
#44 - Philipp Aeschbach / @ihbmifqerg

10/10/2014 at 10:31PM

13
#45 - Atrament / @Atrament

08/20/2016 at 05:52PM

13
#46 - Yann / @yannstad

02/28/2017 at 10:15PM

13
#47 - DHM / @DHM29978992

05/08/2018 at 01:38AM

13
#48 - Daniël De Koker / @daniel_koker

07/28/2018 at 09:43PM

13
#49 - Mihai / @mihaicristiant

03/18/2019 at 11:41AM

13
#50 - Daniel Simionato / @weseven

01/27/2020 at 11:09AM

13
#51 - livenotbylies / @nicestnisus

01/29/2020 at 01:51AM

14
#52 - Tim Chase / @gumnos

10/30/2012 at 03:18PM

14
#53 - Danilo / @dbrgn

10/30/2012 at 03:19PM

14
#54 - Marcin Szamotulski / @me_coot

10/30/2012 at 07:53PM

14
#55 - mix irving / @whimful

10/30/2012 at 11:26PM

14
#56 - Underhill Labs / @underhilllabs

10/30/2012 at 11:46PM

14
#57 - Tallak Tveide / @tallakt

10/31/2012 at 07:47AM

14
#58 - Nathan / @boysetsfrog

10/31/2012 at 10:13AM

14
#59 - Sisso Ananda / @365DayToNibbana

10/31/2012 at 10:20PM

14
#60 - Peter Anselmo / @peter_anselmo

11/01/2012 at 09:02PM