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 54595b13128576000257a3c1

Basic renumbering

Renumbering Basic.

Start file
10 PRINT "The actual"
15 PRINT "code doesn't"
16 PRINT "really matter."
20 PRINT "Just take"
25 PRINT "care of"
30 PRINT "the numbers."
End file
10 PRINT "The actual"
20 PRINT "code doesn't"
30 PRINT "really matter."
40 PRINT "Just take"
50 PRINT "care of"
60 PRINT "the numbers."

View Diff

2,6c2,6
< 15 PRINT "code doesn't"
< 16 PRINT "really matter."
< 20 PRINT "Just take"
< 25 PRINT "care of"
< 30 PRINT "the numbers."
---
> 20 PRINT "code doesn't"
> 30 PRINT "really matter."
> 40 PRINT "Just take"
> 50 PRINT "care of"
> 60 PRINT "the numbers."

Solutions by @andyfoster:

Unlock 7 remaining solutions by signing in and submitting your own entry
Created by: @udioica

1269 active golfers, 5683 entries

Solutions by @andyfoster:
22
#974 - Andy / @andyfoster

05/11/2024 at 04:29AM

22
#>974 - Andy / @andyfoster

05/12/2024 at 10:55PM

23
#>1083 - Andy / @andyfoster

05/11/2024 at 04:28AM

24
#>1138 - Andy / @andyfoster

04/06/2024 at 12:17PM

24
#>1138 - Andy / @andyfoster

04/06/2024 at 12:19PM

25
#>1162 - Andy / @andyfoster

04/06/2024 at 12:16PM

32
#>1226 - Andy / @andyfoster

05/12/2024 at 10:54PM