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

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

627 active golfers, 2034 entries

Solutions by @IvanKwong5:
12
#303 - Ivan Kwong / @IvanKwong5

10/01/2020 at 09:55AM

12
#>303 - Ivan Kwong / @IvanKwong5

10/01/2020 at 09:56AM

14
#>467 - Ivan Kwong / @IvanKwong5

10/01/2020 at 09:53AM

14
#>467 - Ivan Kwong / @IvanKwong5

10/01/2020 at 09:54AM