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

257 active golfers, 754 entries

Leaderboard (lowest score wins):
14
#121 - Thomas Branch / @twighk

01/27/2019 at 12:39PM

14
#122 - Marc Päpper / @mpaepper

01/27/2019 at 02:08PM

14
#123 - Petro Тrouq / @zulolosi

01/27/2019 at 07:03PM

14
#124 - Mac Goever / @MacGoever

01/27/2019 at 08:14PM

14
#125 - h43z / @h43z

01/27/2019 at 09:03PM

14
#126 - Doug Tabuchi / @tabuchid

01/28/2019 at 02:37AM

14
#127 - Mangeart Yoric / @yoricm

01/28/2019 at 04:10AM

14
#128 - Benoit Benoit / @Benoit_Tgt

01/28/2019 at 09:06AM

14
#129 - Bradley M. Small / @BradleySmall

01/28/2019 at 10:10PM

14
#130 - HuyHung / @hungdh0x5e

01/29/2019 at 12:16PM

14
#131 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 09:18AM

14
#132 - Артем Мухометзянов / @Timon_Surikat

01/31/2019 at 10:11AM

14
#133 - Jacob Degeling / @JacobDegeling

02/01/2019 at 11:19AM

14
#134 - James / @Dronak

02/02/2019 at 01:05AM

14
#135 - Cason Rogers / @casonarogers

02/02/2019 at 02:56AM

14
#136 - Paul Inc / @hiniol1982

02/02/2019 at 08:22PM

14
#137 - Doesit Matter / @DoesitMark

02/03/2019 at 09:38AM

14
#138 - tenteke / @kuskus3

02/04/2019 at 02:26PM

14
#139 - Adomas Jatužis / @adomixaszvers

02/05/2019 at 07:44PM

14
#140 - LiterallyJustForVimGolf / @just_vim

02/05/2019 at 09:44PM

14
#141 - Larry McClenon / @uptotheroof

02/06/2019 at 01:48AM

14
#142 - Baine Wedlock / @BaineWedlock

02/06/2019 at 07:26AM

14
#143 - Sxcy / @SxcyX

02/06/2019 at 02:55PM

14
#144 - Kevin Ullmann / @kevosauce

02/07/2019 at 12:14AM

14
#145 - Arijus / @argshook

02/07/2019 at 09:23AM

14
#146 - noname / @noname75810867

02/09/2019 at 06:22AM

14
#147 - Krishnan Ravikumar / @rkrishnaan

02/09/2019 at 01:38PM

14
#148 - Calum Halpin / @calumhalpin

02/09/2019 at 09:50PM

14
#149 - BaffaloP 🐃🎨 / @bbaffalopp

02/11/2019 at 08:16AM

14
#150 - Alexandre Pinho / @lxpnh98

02/11/2019 at 11:14PM