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

196 active golfers, 472 entries

Leaderboard (lowest score wins):
14
#121 - Dan Sackett / @dansackett

10/12/2014 at 07:15PM

14
#122 - eBrnd / @eBrnd

11/07/2014 at 06:39PM

14
#123 - Oliver Christ / @0liverChrist

02/16/2015 at 02:32PM

14
#124 - Skúli Jóhannsson / @skulibj

06/28/2015 at 09:15PM

14
#125 - Sean Hill / @insecteanSean

10/03/2015 at 06:24AM

14
#126 - Will / @obiwan__k3n00bi

08/25/2016 at 03:23AM

14
#127 - Gurukandhamoorthi / @Gurukandhamoor1

08/02/2017 at 04:28PM

14
#128 - Paul Schaefer / @schaeferpp

05/24/2019 at 03:10PM

14
#129 - Lory / @Lory46845742

12/18/2019 at 03:47PM

14
#130 - Jake Worth / @jwworth

01/29/2020 at 01:22AM

14
#131 - Jose Elera / @jelera

01/29/2020 at 01:24AM

14
#132 - Ainsley McGrath / @whole_grainsley

01/29/2020 at 01:25AM

14
#133 - Chris League / @chrisleague

02/27/2020 at 03:03AM

14
#134 - POSIX / @po6ix

01/22/2022 at 03:25PM

14
#135 - x03n046 / @x03n046

05/13/2022 at 04:25AM

14
#136 - Janzen / @__Coos

09/24/2022 at 12:06PM

14
#137 - Qing Liu / @poeminlash

10/17/2022 at 03:36AM

14
#138 - Divvy C. / @divvy_c

08/11/2023 at 06:04PM

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

10/30/2012 at 03:59PM

15
#140 - Thomas Wickham / @mackwic

11/11/2012 at 06:15PM

15
#141 - Ker / @alin_ker

11/18/2012 at 04:22PM

15
#142 - David Barnett / @mu_mind

11/25/2012 at 07:07AM

15
#143 - Runar / @runarfu

01/12/2013 at 09:04AM

15
#144 - Radosław Majewski / @radomaj

01/22/2013 at 04:23PM

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

07/13/2013 at 12:45AM

15
#146 - Dave Aitken / @actionshrimp

08/27/2013 at 06:48PM

15
#147 - David Escribano / @DavidEGx

08/27/2013 at 07:47PM

15
#148 - Jeff Klein / @ravioli_jazz

09/09/2013 at 07:18PM

15
#149 - Khromenko Andrey / @ttydragon

11/23/2013 at 04:17PM

15
#150 - Ram Tamtam / @ramtamtamtam

07/18/2014 at 01:23PM