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 by @russellzhaomao:

Unlock 9 remaining solutions by signing in and submitting your own entry
Created by: @dbrgn

197 active golfers, 473 entries

Solutions by @russellzhaomao:
13
#58 - russellzhaomao / @russellzhaomao

06/05/2022 at 07:58AM

14
#>135 - russellzhaomao / @russellzhaomao

06/05/2022 at 07:52AM

14
#>135 - russellzhaomao / @russellzhaomao

06/05/2022 at 07:53AM

14
#>135 - russellzhaomao / @russellzhaomao

06/05/2022 at 07:54AM

14
#>135 - russellzhaomao / @russellzhaomao

06/05/2022 at 07:56AM

15
#>154 - russellzhaomao / @russellzhaomao

06/05/2022 at 07:50AM

16
#>164 - russellzhaomao / @russellzhaomao

06/05/2022 at 07:49AM

31
#>188 - russellzhaomao / @russellzhaomao

06/05/2022 at 07:47AM

41
#>194 - russellzhaomao / @russellzhaomao

06/05/2022 at 07:46AM