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 5c4d042acfafb4000c9f06c2

One to Ten

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

Start file


End file
1
2
3
4
5
6
7
8
9
10

View Diff

1c1,10
< 
---
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> 10

Solutions by @ray-x:

Unlock 12 remaining solutions by signing in and submitting your own entry
Created by: @tpenguinltg

681 active golfers, 2240 entries

Solutions by @ray-x:
12
#357 - rayx / @ray-x

12/03/2023 at 10:29PM

13
#>399 - rayx / @ray-x

12/03/2023 at 10:29PM

14
#>517 - rayx / @ray-x

12/03/2023 at 10:26PM

15
#>552 - rayx / @ray-x

12/03/2023 at 10:25PM

17
#>567 - rayx / @ray-x

12/03/2023 at 10:25PM

19
#>576 - rayx / @ray-x

12/03/2023 at 10:22PM

20
#>581 - rayx / @ray-x

12/03/2023 at 10:20PM

21
#>596 - rayx / @ray-x

12/03/2023 at 10:19PM

22
#>608 - rayx / @ray-x

12/03/2023 at 10:18PM

22
#>608 - rayx / @ray-x

12/03/2023 at 10:18PM

23
#>628 - rayx / @ray-x

12/03/2023 at 10:16PM

24
#>647 - rayx / @ray-x

12/03/2023 at 10:15PM