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 413 remaining solutions by signing in and submitting your own entry
#414 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

414 active golfers, 1278 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

12
#173 - vimgolfer / @vimgolfer7

09/21/2019 at 03:42PM

12
#174 - Brandon Harrison / @llAboutB

09/24/2019 at 04:53PM

12
#175 - Viktor Styrud / @Visklol

09/25/2019 at 01:38PM

12
#176 - Miko / @_m_ik_o_

09/26/2019 at 03:21PM

12
#177 - Grimelich / @Grimelich

09/30/2019 at 07:44AM

12
#178 - Chen-Hung Wu / @utah12005

10/01/2019 at 03:43AM

12
#179 - Sebastian / @diasitede

10/03/2019 at 03:37PM

12
#180 - Howl / @Howlxx55

10/06/2019 at 07:31PM