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

1052 active golfers, 4579 entries

Leaderboard (lowest score wins):
18
#541 - grigouille / @grigouille2

07/08/2017 at 05:36PM

18
#542 - jirgn / @jirgn

09/23/2017 at 08:48PM

18
#543 - Stephen Watkin / @stephen_watkin

10/06/2017 at 04:35PM

18
#544 - Elton Kamami / @pixel_grid

10/09/2017 at 07:00PM

18
#545 - sehe / @sehetw

10/10/2017 at 02:17PM

18
#546 - ryuugekisya / @ryuugekisya

11/06/2017 at 05:13AM

18
#547 - BareTull / @BareTull3

11/27/2017 at 02:54AM

18
#548 - TpouHuK / @TpouHuK_

02/02/2018 at 07:10PM

18
#549 - ifdkGDtr / @IfdkDtr

02/24/2018 at 04:45PM

18
#550 - Quade Morrison / @quade_morrison

05/07/2018 at 08:55PM

18
#551 - ¬¬¬ ¬¬¬ / @WLq3KGhxohrCPl1

07/09/2018 at 01:45AM

18
#552 - Tom ten Thij / @eco_coder

07/11/2018 at 01:37PM

18
#553 - bluemartian / @bluemartianz59

08/18/2018 at 03:58PM

18
#554 - Cam Smith / @Comradesmith

08/21/2018 at 11:25AM

18
#555 - Weston Neal / @wtneal

09/05/2018 at 06:20PM

18
#556 - Roger Bongers / @RogerBongers

10/03/2018 at 09:31PM

18
#557 - Mike Chen / @chagel

10/29/2018 at 11:41PM

18
#558 - Kasparas Lavrukaitis / @kaslvr

11/04/2018 at 08:43AM

18
#559 - Luis Rodriguez / @luisthecoder

11/13/2018 at 12:26AM

18
#560 - 강현 / @Applesquiz

01/22/2019 at 11:28AM

18
#561 - heppen / @heppen_He

03/12/2019 at 03:30AM

18
#562 - Duke Du / @DukeDu2

03/31/2019 at 09:00PM

19
#563 - Michael Foley / @m1foley

11/04/2014 at 11:44PM

19
#564 - Jeffrey fiddler / @jeff_nv_86

11/05/2014 at 12:23AM

19
#565 - Shane Smith / @_shanesmith

11/05/2014 at 02:34AM

19
#566 - Amit Verma / @amitv12

11/05/2014 at 03:49AM

19
#567 - Matt Robbins / @mcrmfc

11/05/2014 at 12:17PM

19
#568 - Asymmetrical Max / @thismax

11/06/2014 at 06:50AM

19
#569 - Collin Richards / @MrBallinCollin

11/09/2014 at 09:41AM

19
#570 - A / @Tower_1980

11/10/2014 at 10:24AM