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 by @tpenguinltg:

Unlock 1 remaining solutions by signing in and submitting your own entry
Created by: @agasparovici

38 active golfers, 63 entries

Solutions by @tpenguinltg:
23
#11 - tPenguinLTG / @tpenguinltg

12/03/2017 at 01:03AM