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):
14
#241 - Jacob Degeling / @JacobDegeling

02/01/2019 at 11:19AM

14
#242 - James / @Dronak

02/02/2019 at 01:05AM

14
#243 - Cason Rogers / @casonarogers

02/02/2019 at 02:56AM

14
#244 - Doesit Matter / @DoesitMark

02/03/2019 at 09:38AM

14
#245 - tenteke / @kuskus3

02/04/2019 at 02:26PM

14
#246 - Adomas Jatužis / @adomixaszvers

02/05/2019 at 07:44PM

14
#247 - LiterallyJustForVimGolf / @just_vim

02/05/2019 at 09:44PM

14
#248 - Larry McClenon / @uptotheroof

02/06/2019 at 01:48AM

14
#249 - Sxcy / @SxcyX

02/06/2019 at 02:55PM

14
#250 - Kevin Ullmann / @kevosauce

02/07/2019 at 12:14AM

14
#251 - Arijus / @argshook

02/07/2019 at 09:23AM

14
#252 - noname / @noname75810867

02/09/2019 at 06:22AM

14
#253 - Krishnan Ravikumar / @rkrishnaan

02/09/2019 at 01:38PM

14
#254 - Calum Halpin / @calumhalpin

02/09/2019 at 09:50PM

14
#255 - BaffaloP 🐃🎨 / @bbaffalopp

02/11/2019 at 08:16AM

14
#256 - Alexandre Pinho / @lxpnh98

02/11/2019 at 11:14PM

14
#257 - Daniel Hjelm / @dhjelm

02/12/2019 at 10:46PM

14
#258 - Filipe Brandenburger / @filbranden

02/17/2019 at 03:21AM

14
#259 - Bruno / @Av31r3ns3

02/20/2019 at 12:12PM

14
#260 - algebraic-geometric / @algebraicgeome1

02/23/2019 at 02:41PM

14
#261 - sisi100 / @s1si100

02/24/2019 at 01:47PM

14
#262 - sjcomp / @sjcomp

02/25/2019 at 02:54PM

14
#263 - Kristian Haug / @krimhaug

02/26/2019 at 12:47PM

14
#264 - Jiho Noh / @JihoNoh

02/28/2019 at 02:01AM

14
#265 - mnx / @mnxx

02/28/2019 at 09:00PM

14
#266 - andrwyoung / @andrwyoung1

03/01/2019 at 06:44PM

14
#267 - ahm4711 / @ahm4711

03/01/2019 at 10:23PM

14
#268 - vince / @vincentvangott

03/02/2019 at 09:14PM

14
#269 - scottarver / @scottarver

03/03/2019 at 03:41AM

14
#270 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 05:21AM