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 1186 remaining solutions by signing in and submitting your own entry
#1187 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

1187 active golfers, 5279 entries

Leaderboard (lowest score wins):
39
#1171 - Vim Golfer / @VimGolfer6

07/25/2019 at 01:08PM

41
#1172 - Jason Spafford / @JasonSpafford

05/22/2015 at 06:00PM

41
#1173 - Samir Sadek / @netsamir

07/17/2015 at 09:48PM

41
#1174 - 王有铭 / @wangyouming1209

01/18/2018 at 01:57PM

42
#1175 - Bernard Wolff / @bernard_wolff

11/26/2014 at 08:34PM

42
#1176 - Ilker Mutlu / @ilkermutlu

04/01/2015 at 02:34PM

42
#1177 - ooJava / @GitCheckout

08/17/2015 at 12:47AM

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

03/28/2015 at 12:11PM

44
#1179 - Jurica / @Jurica34581259

11/15/2018 at 12:07AM

46
#1180 - Paul The Danish / @PaulTheDanish

11/08/2014 at 07:32PM

46
#1181 - David Gustavsson / @mrGustaphe

06/08/2017 at 08:23PM

50
#1182 - Cleberson Gomes / @Cleber_son

08/19/2018 at 08:34PM

52
#1183 - Avnish Srivastava / @avnish8

03/24/2020 at 09:12PM

52
#1184 - Ryan / @Ryan63088464

09/13/2020 at 08:12AM

55
#1185 - sam abtek / @samabtek1

08/04/2017 at 06:42PM

59
#1186 - MGJoe93 / @mgjoe93

03/03/2019 at 07:45AM

66
#1187 - Dominic Z / @thammaaa

12/21/2017 at 12:59PM