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

486 active golfers, 1563 entries

Leaderboard (lowest score wins):
12
#181 - せいほう / @FICSQF

10/07/2019 at 03:55AM

12
#182 - Charlie OConor / @charlieoconor

10/07/2019 at 05:04PM

12
#183 - Lorenzo Bertolino / @lo_bertolino

10/09/2019 at 04:30PM

12
#184 - CF / @CF42231856

10/14/2019 at 07:37PM

12
#185 - KlondikeBaer / @BaerKlondike

10/15/2019 at 08:29PM

12
#186 - IronTiger Park / @IrontigerP

10/17/2019 at 01:27AM

12
#187 - leo / @leo28356948

10/18/2019 at 05:11AM

12
#188 - Tamás Kárándi / @tkarandi

10/19/2019 at 08:08PM

12
#189 - Mario Olofo / @mario_olofo

10/19/2019 at 08:37PM

12
#190 - Lawrence Gray / @LawrenceGray23

10/19/2019 at 10:44PM

12
#191 - Ivan Volosyuk / @IvanVolosyuk

10/21/2019 at 10:57AM

12
#192 - MasterFox / @MaestroZorro_

10/22/2019 at 01:22PM

12
#193 - yousef Ibrahim / @YucefIbrahim

10/25/2019 at 10:40AM

12
#194 - Jonathan Medwig / @jmedwig

10/25/2019 at 02:35PM

12
#195 - vicver09 / @vicver091

10/28/2019 at 02:26PM

12
#196 - Gregory Furter / @gfurter

10/29/2019 at 11:55AM

12
#197 - Lory / @Lory46845742

10/31/2019 at 03:37PM

12
#198 - trafficone / @trafficone

11/02/2019 at 06:39AM

12
#199 - Alex Emelianov / @AlexEmelianov3

11/03/2019 at 07:50PM

12
#200 - Chris Covert / @covertcj

11/07/2019 at 09:07PM

12
#201 - harmony_krieg / @harmony_krieg

11/09/2019 at 12:52PM

12
#202 - shoji541 / @shoji541

11/12/2019 at 04:17PM

12
#203 - skamgolf / @skamgolf

11/13/2019 at 02:06AM

12
#204 - Lei Kin / @kireinasorakin

11/13/2019 at 09:01AM

12
#205 - damien / @GreatTestyTest

11/13/2019 at 11:56PM

12
#206 - mogitate / @mutemeat

11/16/2019 at 12:21PM

12
#207 - Paul Inc / @hiniol1982

11/16/2019 at 06:44PM

12
#208 - Micael Jarniac / @MicaelJarniac

11/17/2019 at 10:58PM

12
#209 - Ebi / @ehan6

11/22/2019 at 09:56AM

12
#210 - pysnow530 / @pysnow530

11/23/2019 at 09:36AM