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

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 371 remaining solutions by signing in and submitting your own entry
#372 Alexandre Gomes / @alexgomesdev - Score: 67 - 02/12/19 @ 12:50
:put(<BS> range=(1,10)<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>0<CR>:0put = <BS>range(1,10)<CR><Esc>jdd<Esc>:wq<CR>

0 comments


Created by: @tpenguinltg

372 active golfers, 1099 entries

Leaderboard (lowest score wins):
12
#151 - Bradley M. Small / @BradleySmall

08/10/2019 at 04:39AM

12
#152 - Hamza Shahid / @Zecuria

08/13/2019 at 01:23AM

12
#153 - Luiz Eduardo Amaral / @_luxedo

08/13/2019 at 05:46PM

12
#154 - XiaoXiaoLui / @XiaoXiaoLui1

08/15/2019 at 03:26PM

12
#155 - theBecwar / @thebecwar

08/18/2019 at 04:22PM

12
#156 - Malcolm Sharpe / @blueblimpms

08/24/2019 at 01:29AM

12
#157 - Oleg Skillup / @skill_up

08/24/2019 at 07:53AM

12
#158 - Marco Mannucci / @markomannux

08/24/2019 at 09:44PM

12
#159 - JS / @jjohsan

08/30/2019 at 12:57PM

12
#160 - Brice Letcher / @bricoletc

08/30/2019 at 05:32PM

12
#161 - Christian / @paierlep

08/30/2019 at 10:16PM

12
#162 - Bill Ruddock / @biinari

09/01/2019 at 12:10AM

12
#163 - dpetrovic_vimgolf / @DpetrovicV

09/04/2019 at 01:49PM

12
#164 - Madelyn Freed / @EcoBummer

09/04/2019 at 07:50PM

12
#165 - Zach Ingbretsen / @ZIngbretsen

09/07/2019 at 06:01PM

12
#166 - averageRandomPerson / @averageRandomP1

09/09/2019 at 10:16PM

12
#167 - Baine Wedlock / @BaineWedlock

09/12/2019 at 11:30AM

12
#168 - Алексей Кашуба / @Alex_Kashuba

09/14/2019 at 10:29PM

12
#169 - dicekest / @dicekest

09/16/2019 at 02:12AM

12
#170 - Cassandra / @kascein

09/17/2019 at 08:11AM

12
#171 - Yannick Gladow / @y_gldw

09/17/2019 at 11:25AM

12
#172 - Pogues 123 / @123Pogues

09/18/2019 at 07:16PM

13
#173 - Gitsnik / @dracyrys

04/25/2019 at 12:41PM

13
#174 - Francois Urquhart / @LostUrquhart

05/14/2019 at 08:23PM

13
#175 - Tim Dean / @Tmdean

06/10/2019 at 08:00PM

13
#176 - Hugo Tai / @HugoTai100

06/11/2019 at 05:41AM

13
#177 - hiro_3_1 / @hiroshi160301

06/28/2019 at 09:16AM

13
#178 - hielke / @hielke24840788

07/07/2019 at 11:55AM

13
#179 - mirsemen / @mirsemen1

07/15/2019 at 09:42AM

13
#180 - Peter Demin / @peterdemin

07/29/2019 at 12:47PM