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

1032 active golfers, 4511 entries

Leaderboard (lowest score wins):
19
#601 - 唐偉 / @tangw

11/18/2018 at 04:15PM

19
#602 - Levi Self / @LeviRSelf

11/18/2018 at 10:08PM

19
#603 - nimbus117 / @nimbus_117

11/24/2018 at 05:12PM

19
#604 - Bennett / @bennettbackward

12/19/2018 at 03:15AM

19
#605 - Harsha B C / @Harsha1306_

02/06/2019 at 11:23PM

19
#606 - Phoon / @justflashhim

05/13/2019 at 12:39AM

20
#607 - Elcio Ferreira / @elcio

11/05/2014 at 12:12AM

20
#608 - xarmux / @xarmux

11/05/2014 at 10:32PM

20
#609 - James / @Dronak

11/06/2014 at 04:23AM

20
#610 - Henning Perl / @henningperl

11/17/2014 at 10:13AM

20
#611 - Soren Bjornstad / @scorchgeek

12/04/2014 at 10:04PM

20
#612 - ゆきみ / @edp02

12/21/2014 at 08:17AM

20
#613 - kawas / @kawas44

01/01/2015 at 04:18PM

20
#614 - Zull Full / @Zullfull

01/15/2015 at 08:13AM

20
#615 - Moritz Schüpp / @moritzschuepp

01/21/2015 at 01:17PM

20
#616 - James Pringle / @mathbyjames

02/13/2015 at 09:27PM

20
#617 - ushumpei / @ushumpei_

04/07/2015 at 11:39AM

20
#618 - Tim Vail / @timdvail

08/05/2015 at 06:56PM

20
#619 - lukaskrieger / @lukaskrieger

08/07/2015 at 01:24PM

20
#620 - Paulo H Baumann / @PauloBaumann

10/05/2015 at 04:30PM

20
#621 - Ali Moeeny / @alimoeeny

10/21/2015 at 11:48AM

20
#622 - LordFoom / @LordFoom

10/22/2015 at 02:45PM

20
#623 - Ethan Stewart / @EthanS279

12/23/2015 at 09:40PM

20
#624 - [onion] chesse / @onion_chesse

03/29/2016 at 12:33AM

20
#625 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 01:21PM

20
#626 - lilach adir / @leelaRed

03/31/2016 at 11:47AM

20
#627 - niels aamloos / @AamloosNiels

05/28/2016 at 02:57PM

20
#628 - Paweł Smołka / @pawelsmolka

06/15/2016 at 11:45AM

20
#629 - David Devecsery / @devecsery

06/22/2016 at 08:11PM

20
#630 - Netrisk Cool / @C00lt0

09/29/2016 at 09:36PM