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 5a218cccc0ed6d04af000004

Back to the roots

Johnny has a file with more integers. He wants to change each number with its square root. Can you help him?

Start file
13
81
1024
72
144
51
90
2
77
25
625
4
End file
3.605551
9.0
32.0
8.485281
12.0
7.141428
9.486833
1.414214
8.774964
5.0
25.0
2.0

View Diff

1,12c1,12
< 13
< 81
< 1024
< 72
< 144
< 51
< 90
< 2
< 77
< 25
< 625
< 4
---
> 3.605551
> 9.0
> 32.0
> 8.485281
> 12.0
> 7.141428
> 9.486833
> 1.414214
> 8.774964
> 5.0
> 25.0
> 2.0

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 13 remaining solutions by signing in and submitting your own entry
#14 Kyrylo Yakymenko / Yakimych - Score: 23 - 12/07/17 @ 18:59
qqC<C-R>=sqrt(<C-R>")<CR><Esc>wq11@qZZ

0 comments

#15 Henrique Malheiro / rike09 - Score: 23 - 12/11/17 @ 23:19
qqC<C-R>=sqrt(<C-R>")<CR><Esc>+q11@qZZ

0 comments

#16 h43z / h43z - Score: 25 - 12/02/17 @ 14:49
qqcw<C-R>=sqrt(<C-R>")<CR><Esc>0jq11@qZZ

0 comments

#17 Mike Harris / MikeMJHarris - Score: 31 - 12/02/17 @ 19:25
qqcw<C-R>=sqrt(<C-R>")<CR>+<BS><Esc>+11@qq111@qZZ

0 comments

Created by: agasparovici

17 active golfers, 26 entries

Leaderboard (lowest score wins):
23
#1 - Jon Krause / jkrause314

12/01/2017 at 05:58PM

23
#2 - Smylers / Smylers2

12/01/2017 at 07:20PM

23
#3 - Cristian Lupașcu / clupasq

12/01/2017 at 08:21PM

23
#4 - John Braxler / braxler

12/01/2017 at 10:02PM

23
#5 - 5tephen / geluso

12/02/2017 at 01:27AM

23
#6 - Andrei Gasparovici / agasparovici

12/02/2017 at 07:08AM

23
#7 - BareTull / BareTull3

12/02/2017 at 04:27PM

23
#8 - tPenguinLTG / tpenguinltg

12/03/2017 at 01:03AM

23
#9 - dayshade / dayshade_7

12/03/2017 at 12:38PM

23
#10 - Eric Söderström / eksoderstrom

12/04/2017 at 01:46AM

23
#11 - 梧桐王子 / WutongYujie

12/05/2017 at 01:27AM

23
#12 - Pereant osores / viniciusxp

12/05/2017 at 12:34PM

23
#13 - Petro Тrouq / zulolosi

12/06/2017 at 12:02AM

23
#14 - Kyrylo Yakymenko / Yakimych

12/07/2017 at 06:59PM

23
#15 - Henrique Malheiro / rike09

12/11/2017 at 11:19PM

25
#16 - h43z / h43z

12/02/2017 at 02:49PM

31
#17 - Mike Harris / MikeMJHarris

12/02/2017 at 07:25PM