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

976 active golfers, 4195 entries

Leaderboard (lowest score wins):
11
#61 - Shashwat Raghuvanshi / @Shashwat_sr123

03/26/2017 at 02:41PM

11
#62 - Tose / @Toseim

04/10/2017 at 09:14AM

11
#63 - Tom BP / @ThosBP

04/20/2017 at 02:00PM

11
#64 - 梧桐王子 / @WutongYujie

04/24/2017 at 04:42AM

11
#65 - Roland TheFreak / @_TheFreak_

04/29/2017 at 04:27PM

11
#66 - Chris Robertson / @chrisxrobertson

05/01/2017 at 06:42AM

11
#67 - Acid One / @AcidOne2

05/04/2017 at 08:57AM

11
#68 - Allen | Wheels / @SRWheel5

05/04/2017 at 05:16PM

11
#69 - Ming Dai / @MingDai2

05/21/2017 at 07:31PM

11
#70 - BlackCap / @BlackCapCoder

05/24/2017 at 06:46PM

11
#71 - Florian Gauger / @FlorianGauger

06/03/2017 at 12:39AM

11
#72 - Joel Meyer-Hamme / @JoelMeyerHamme

06/20/2017 at 10:27PM

11
#73 - Bennett Bernardoni / @BBernardoni

06/28/2017 at 08:06PM

11
#74 - akanb / @GAkt6L6SlKhy8zA

06/28/2017 at 11:59PM

11
#75 - Jon Barker / @j0nbarker

07/19/2017 at 11:35PM

11
#76 - Jacob Buete / @JBuete

08/01/2017 at 05:29AM

11
#77 - huho / @huho_xu

08/02/2017 at 08:11PM

11
#78 - 杨洋 / @176795444

08/13/2017 at 09:29AM

11
#79 - Terry Ding / @TerryDing77

08/24/2017 at 10:17AM

11
#80 - bazkila@gmail.com / @bazkila

09/03/2017 at 08:10AM

11
#81 - lawliteqed / @lawliteqed

09/07/2017 at 03:46PM

11
#82 - Kevin Viricel / @kv_kleww

10/02/2017 at 09:05AM

11
#83 - Luke Bryant / @LukeBryant55

10/07/2017 at 10:07PM

11
#84 - しぇぱっち / @shepabashi

10/22/2017 at 12:22AM

11
#85 - Turkey Man / @lvturkeyman

11/08/2017 at 07:23AM

11
#86 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 07:26AM

11
#87 - Wolly Woodpecker / @WollyWoodpecker

11/14/2017 at 09:18PM

11
#88 - Bradley M. Small / @BradleySmall

11/22/2017 at 11:46PM

11
#89 - Henrique Malheiro / @rike09

12/09/2017 at 05:33PM

11
#90 - Joachim Wedin / @joachim_wedin

12/12/2017 at 09:00PM