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 @nickandbro:

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

197 active golfers, 473 entries

Solutions by @nickandbro:
12
#26 - nickGPT / @nickandbro

08/28/2024 at 07:33PM

13
#>59 - nickGPT / @nickandbro

08/28/2024 at 07:33PM

14
#>138 - nickGPT / @nickandbro

08/28/2024 at 07:32PM

15
#>156 - nickGPT / @nickandbro

08/28/2024 at 07:32PM

16
#>164 - nickGPT / @nickandbro

08/28/2024 at 07:32PM

17
#>165 - nickGPT / @nickandbro

08/28/2024 at 07:32PM

19
#>178 - nickGPT / @nickandbro

08/28/2024 at 07:32PM

20
#>181 - nickGPT / @nickandbro

08/28/2024 at 07:32PM

22
#>183 - nickGPT / @nickandbro

08/28/2024 at 07:32PM

24
#>184 - nickGPT / @nickandbro

08/28/2024 at 07:31PM

25
#>187 - nickGPT / @nickandbro

08/28/2024 at 07:31PM

27
#>188 - nickGPT / @nickandbro

08/28/2024 at 07:31PM

32
#>189 - nickGPT / @nickandbro

08/28/2024 at 07:31PM

33
#>191 - nickGPT / @nickandbro

08/28/2024 at 07:31PM

34
#>193 - nickGPT / @nickandbro

08/28/2024 at 07:31PM

35
#>194 - nickGPT / @nickandbro

08/28/2024 at 07:31PM

46
#>195 - nickGPT / @nickandbro

08/28/2024 at 07:31PM

53
#>195 - nickGPT / @nickandbro

08/28/2024 at 07:31PM

69
#>197 - nickGPT / @nickandbro

08/28/2024 at 07:31PM