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):
20
#181 - vg / @vg53210350

10/29/2018 at 06:05PM

20
#182 - Olivier Bégassat / @zk_evm

06/15/2023 at 09:16PM

22
#183 - Paul Gideon Dann / @giddie

10/31/2012 at 02:10PM

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

01/31/2013 at 11:08PM

24
#185 - Murali Suriar / @msuriar

11/17/2012 at 10:59AM

25
#186 - Nicolas Friedli / @NicolasFriedli

10/31/2012 at 09:24PM

25
#187 - Raphael / @rnstlr

11/26/2013 at 11:36PM

25
#188 - Nicholas Lee-Hone / @NicholasLeeHone

10/13/2014 at 08:12PM

27
#189 - Eric Andres / @eric_m_andres

12/07/2012 at 08:54PM

32
#190 - shahanavaz m / @shahanavazm

03/28/2024 at 03:41AM

33
#191 - Daniel Allen Deutsch / @cmmn_nighthawk

08/24/2016 at 01:10AM

33
#192 - Caroline / @carokenworthy

08/24/2016 at 02:06AM

34
#193 - bogwonch / @bogwonch

10/30/2012 at 08:03PM

34
#194 - potatol33t / @potatol33t

08/12/2022 at 08:06AM

35
#195 - Alex Bartol / @alexbartol

05/05/2015 at 09:03PM

46
#196 - Max Sherman / @johnislarry

11/12/2012 at 12:22PM

54
#197 - Luis Fernando Rodríguez Vargas / @LuisFerRodVar

06/25/2024 at 10:38PM

69
#198 - Lim Han / @tagore79

11/04/2012 at 02:19PM