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

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 1061 remaining solutions by signing in and submitting your own entry
#1062 Dominic Z / @thammaaa - Score: 66 - 12/21/17 @ 12:59
<C-V>GI10<Esc><Esc><C-V>G<C-N><C-A><Esc>ugvgvv<C-A><Esc>uu<C-R><Right><Right><Esc>v<Down><Down><Down><Up><Up><Up><Esc><C-V><Down><Down><Down><Down><Down><Right>d<Left><Left><Down><C-V><Down><Down><Down><Down><C-A><Esc>u<C-V>Gg<C-V><C-A><Esc>u<C-V>Gg<C-A>ZZ

0 comments


Created by: @udioica

1062 active golfers, 4623 entries

Leaderboard (lowest score wins):
42
#1051 - Bernard Wolff / @bernard_wolff

11/26/2014 at 08:34PM

42
#1052 - Ilker Mutlu / @ilkermutlu

04/01/2015 at 02:34PM

42
#1053 - ooJava / @GitCheckout

08/17/2015 at 12:47AM

44
#1054 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / @subbucoding

03/28/2015 at 12:11PM

44
#1055 - Jurica / @Jurica34581259

11/15/2018 at 12:07AM

46
#1056 - Paul The Danish / @PaulTheDanish

11/08/2014 at 07:32PM

46
#1057 - David Gustavsson / @mrGustaphe

06/08/2017 at 08:23PM

46
#1058 - yaarrr / @v0lko

03/18/2019 at 01:58PM

50
#1059 - Cleberson Gomes / @Cleber_son

08/19/2018 at 08:34PM

55
#1060 - sam abtek / @samabtek1

08/04/2017 at 06:42PM

59
#1061 - MGJoe93 / @mgjoe93

03/03/2019 at 07:45AM

66
#1062 - Dominic Z / @thammaaa

12/21/2017 at 12:59PM