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 @jkrause314:

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

36 active golfers, 52 entries

Solutions by @jkrause314:
23
#3 - Jon Krause / @jkrause314

12/01/2017 at 05:58PM