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 1269 remaining solutions by signing in and submitting your own entry
#1270 boumediane1 / @boumediane1 - Score: 72 - 01/09/25 @ 22:34
<C-V>Glr10u<C-V>jjjjjlr<Esc>s10<Esc><Esc>hjklhvl<C-V>jjjjjojg<C-A><Esc>u<C-V>jjjjojg<C-A><Esc>ukk<C-V>jjjjjojg<C-A><Esc><Esc>:wa<CR>:q<CR>

0 comments


Created by: @udioica

1270 active golfers, 5685 entries

Leaderboard (lowest score wins):
33
#1231 - Sam Christensen / @samuelchriste

11/24/2020 at 04:29AM

33
#1232 - Lbfe / @Jmat07

12/30/2020 at 02:57PM

34
#1233 - Slurpie Chapdash / @SlurpieChapdash

05/01/2015 at 09:37PM

34
#1234 - ʎɐɹ / @staticjak

05/05/2017 at 09:47PM

35
#1235 - Victor-IsmaelReeves / @VIsmaelreeves

11/08/2020 at 10:19AM

36
#1236 - bo-yu huang / @good5dog5

11/11/2014 at 08:34AM

36
#1237 - Pierre Houssin / @PierreHoussin

12/16/2014 at 08:38PM

36
#1238 - Chanaka Sandaruwan / @ch4n4k4

12/24/2014 at 11:58AM

36
#1239 - Lydia Cupery / @LCupery

12/02/2018 at 08:15PM

37
#1240 - Antonio Murdaca / @runc0m

01/17/2015 at 09:49PM

38
#1241 - marcusmichaely / @marcus_michaely

02/08/2015 at 01:16AM

38
#1242 - Hee Jun Yi / @junyihjy

04/02/2015 at 01:27AM

38
#1243 - BitLad / @BitLad

01/30/2018 at 07:44PM

38
#1244 - The Joe / @computerjoe708

03/20/2019 at 11:13PM

38
#1245 - mp / @mp28812322

07/17/2020 at 12:01PM

38
#1246 - Josh Keller / @KzooJosh

01/28/2021 at 02:53AM

39
#1247 - Pyankova Julia / @yulya3102

11/09/2014 at 12:06PM

39
#1248 - Simon Ingelsson / @_DeVVaN_

08/15/2018 at 02:17PM

39
#1249 - Fabio Branquinho / @branquif

11/08/2018 at 02:56PM

39
#1250 - Vim Golfer / @VimGolfer6

07/25/2019 at 01:08PM

41
#1251 - Jason Spafford / @JasonSpafford

05/22/2015 at 06:00PM

41
#1252 - Samir Sadek / @netsamir

07/17/2015 at 09:48PM

41
#1253 - 王有铭 / @wangyouming1209

01/18/2018 at 01:57PM

42
#1254 - Bernard Wolff / @bernard_wolff

11/26/2014 at 08:34PM

42
#1255 - Ilker Mutlu / @ilkermutlu

04/01/2015 at 02:34PM

42
#1256 - ooJava / @GitCheckout

08/17/2015 at 12:47AM

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

03/28/2015 at 12:11PM

44
#1258 - Jurica / @Jurica34581259

11/15/2018 at 12:07AM

46
#1259 - Paul The Danish / @PaulTheDanish

11/08/2014 at 07:32PM

46
#1260 - David Gustavsson / @mrGustaphe

06/08/2017 at 08:23PM