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):
19
#601 - Christopher Wells / @ExcaliburZero_Z

05/07/2016 at 08:09PM

19
#602 - malet / @Malet

06/23/2016 at 02:28PM

19
#603 - Nikita Danilov / @Mirt_ru

07/17/2016 at 09:17AM

19
#604 - Antoni Villalonga / @friki

08/18/2016 at 02:39AM

19
#605 - Lozovaya Elizaveta / @Lozoveta

10/26/2016 at 08:34AM

19
#606 - Wessel Sinnema / @wsinnema

11/26/2016 at 08:49PM

19
#607 - Matt Walsh / @wattmalsh

02/03/2017 at 06:34PM

19
#608 - Dan Prince / @danj_prince

02/25/2017 at 01:34AM

19
#609 - xwle / @xwle

03/12/2017 at 04:21AM

19
#610 - Simon Cheng / @bambooraccoon

01/19/2018 at 07:41PM

19
#611 - Adam Townsend / @despendesigns

01/29/2018 at 09:30AM

19
#612 - h3is3nd3rp / @h3is3nd3rp

08/02/2018 at 12:37PM

19
#613 - 唐偉 / @tangw

11/18/2018 at 04:15PM

19
#614 - Levi Self / @LeviRSelf

11/18/2018 at 10:08PM

19
#615 - nimbus117 / @nimbus_117

11/24/2018 at 05:12PM

19
#616 - Bennett / @bennettbackward

12/19/2018 at 03:15AM

19
#617 - Harsha B C / @Harsha1306_

02/06/2019 at 11:23PM

19
#618 - Phoon / @justflashhim

05/13/2019 at 12:39AM

19
#619 - Vitaly Sinilin / @unterwulf

05/28/2019 at 08:57PM

20
#620 - Elcio Ferreira / @elcio

11/05/2014 at 12:12AM

20
#621 - xarmux / @xarmux

11/05/2014 at 10:32PM

20
#622 - James / @Dronak

11/06/2014 at 04:23AM

20
#623 - Henning Perl / @henningperl

11/17/2014 at 10:13AM

20
#624 - Soren Bjornstad / @scorchgeek

12/04/2014 at 10:04PM

20
#625 - ゆきみ / @edp02

12/21/2014 at 08:17AM

20
#626 - kawas / @kawas44

01/01/2015 at 04:18PM

20
#627 - Zull Full / @Zullfull

01/15/2015 at 08:13AM

20
#628 - Moritz Schüpp / @moritzschuepp

01/21/2015 at 01:17PM

20
#629 - James Pringle / @mathbyjames

02/13/2015 at 09:27PM

20
#630 - ushumpei / @ushumpei_

04/07/2015 at 11:39AM