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

677 active golfers, 2227 entries

Leaderboard (lowest score wins):
12
#241 - Tefe / @tefetic

01/30/2020 at 09:17PM

12
#242 - Xiangzhuo Meng / @MengXiangzhuo

02/01/2020 at 02:57AM

12
#243 - おねさわ / @yama846

02/02/2020 at 02:35PM

12
#244 - vimgolf_tmp_1 / @1Vimgolf

02/16/2020 at 02:51PM

12
#245 - Emil / @emilklindt

02/16/2020 at 09:24PM

12
#246 - KingYames / @JamesZeHunter

02/17/2020 at 04:37AM

12
#247 - Steffen / @Pions90

02/17/2020 at 06:43PM

12
#248 - howanto / @ho_wan_

02/20/2020 at 11:55AM

12
#249 - Strages / @Strages2k

02/23/2020 at 02:37AM

12
#250 - Anthony BERNARD / @TweetTontony

02/24/2020 at 09:12PM

12
#251 - Mushan Yang / @mushanyoung

02/27/2020 at 02:42AM

12
#252 - eshel / @EshelBM

02/28/2020 at 10:57AM

12
#253 - ser / @ser_robo

02/29/2020 at 08:28AM

12
#254 - floyd / @floyd10086

03/05/2020 at 05:35AM

12
#255 - countime / @countime1

03/06/2020 at 02:06AM

12
#256 - r4d1um / @r4d1um

03/13/2020 at 03:39PM

12
#257 - Sean Dewar / @seandewar

03/13/2020 at 06:59PM

12
#258 - Toby Hawkins / @Toby_Hawkins

03/15/2020 at 03:52AM

12
#259 - Niklas Ydebäck / @Ydebaeck

03/18/2020 at 11:59PM

12
#260 - Marco / @Marco24456514

03/21/2020 at 10:31PM

12
#261 - Robberechts Arne / @ArneRobberechts

03/22/2020 at 05:44PM

12
#262 - 薛浩滎 / @iTPChbTeI4ZW9s3

03/24/2020 at 08:22AM

12
#263 - BnnGolfer / @BnnGolfer

03/24/2020 at 10:16PM

12
#264 - Nathan Hartman / @hnathan918

04/03/2020 at 03:49PM

12
#265 - Rodrigo V. Lopes / @rodvlopes

04/03/2020 at 07:03PM

12
#266 - Jason / @roosjason

04/12/2020 at 10:11AM

12
#267 - edvrds / @edvrds

04/14/2020 at 11:14AM

12
#268 - RaylanFox / @RaylanFox

04/15/2020 at 07:15AM

12
#269 - 廖彥智 / @JeffYenchih

04/15/2020 at 08:05AM

12
#270 - bluemartian / @bluemartianz59

04/18/2020 at 03:25PM