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
#121 - Lory / @Lory46845742

12/18/2019 at 03:47PM

14
#122 - jake worth / @jwworth

01/29/2020 at 01:22AM

14
#123 - Jose Elera / @jelera

01/29/2020 at 01:24AM

14
#124 - Ainsley McGrath / @whole_grainsley

01/29/2020 at 01:25AM

14
#125 - Chris League / @chrisleague

02/27/2020 at 03:03AM

15
#126 - h_east (トロッコ6個) / @h_east

10/30/2012 at 03:59PM

15
#127 - Thomas Wickham / @mackwic

11/11/2012 at 06:15PM

15
#128 - Ker / @alin_ker

11/18/2012 at 04:22PM

15
#129 - David Barnett / @mu_mind

11/25/2012 at 07:07AM

15
#130 - Runar / @runarfu

01/12/2013 at 09:04AM

15
#131 - Radosław Majewski / @radomaj

01/22/2013 at 04:23PM

15
#132 - Woojung Kim 김우중 / @_kimwz

07/13/2013 at 12:45AM

15
#133 - Dave Aitken / @actionshrimp

08/27/2013 at 06:48PM

15
#134 - David Escribano / @DavidEGx

08/27/2013 at 07:47PM

15
#135 - Jeff Klein / @ravioli_jazz

09/09/2013 at 07:18PM

15
#136 - Khromenko Andrey / @ttydragon

11/23/2013 at 04:17PM

15
#137 - Ram Tamtam / @ramtamtamtam

07/18/2014 at 01:23PM

15
#138 - ltn614 / @ltn614

09/24/2015 at 09:28AM

15
#139 - Daniel Bellenger / @DanielBellenger

10/03/2016 at 06:16PM

15
#140 - Rich Cheng / @sedm0784

09/14/2018 at 09:19AM

16
#141 - JTeo / @JTeosw

11/05/2012 at 05:51PM

16
#142 - Einar Lielmanis / @spicausis

11/07/2012 at 04:44PM

16
#143 - Jason Wolf / @zephyr_wolf

11/08/2012 at 01:09PM

16
#144 - Roland Schatz / @fl_Overmind

12/14/2012 at 12:09PM

16
#145 - Evan Shrubsole / @evanshrubsole

04/01/2013 at 03:28PM

16
#146 - DOUG BLACK / @dougblackio

04/08/2013 at 02:37PM

16
#147 - Hachez Floran / @FloranHachez

09/05/2013 at 09:27AM

17
#148 - Mathias Rav / @iaddquotes

11/13/2012 at 10:49PM

19
#149 - Darcy Parker / @DarcyParker

10/31/2012 at 11:46PM

19
#150 - Chasetopher / @chasetopherlee

11/02/2012 at 05:38AM