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

1092 active golfers, 4829 entries

Leaderboard (lowest score wins):
12
#211 - leo / @leo28356948

10/23/2019 at 01:09PM

12
#212 - Lory / @Lory46845742

11/01/2019 at 01:22PM

13
#213 - Felix Boers / @felixboers

02/25/2018 at 02:05PM

13
#214 - Visualizing Medicine / @VisualizeMed

01/13/2019 at 11:07PM

13
#215 - r / @revanthedarth

02/09/2019 at 02:05AM

13
#216 - james_bunch / @james_bunch

04/08/2019 at 07:34PM

13
#217 - Arno / @arnoxmp

05/08/2019 at 09:19PM

14
#218 - Petro Тrouq / @zulolosi

11/06/2014 at 06:27AM

14
#219 - Tonda Minařík / @Eari359

11/06/2014 at 12:49PM

14
#220 - Michael Comerford / @MComerford1

11/09/2014 at 03:10AM

14
#221 - Alex Kesling / @AlexKesling

11/10/2014 at 02:50AM

14
#222 - Philipp Aeschbach / @ihbmifqerg

11/10/2014 at 04:58PM

14
#223 - Hrvoje Kopinc / @Hrwaaa

11/16/2014 at 02:41PM

14
#224 - devos victor / @victordevos

11/16/2014 at 07:00PM

14
#225 - jake romer / @notjakeromer

11/19/2014 at 07:22AM

14
#226 - Alex K / @alex_kononovich

11/24/2014 at 08:28PM

14
#227 - Grisha Pushkov / @readoonly

11/25/2014 at 07:16PM

14
#228 - Vincent Dumoulin / @dumoulinv

11/26/2014 at 02:11AM

14
#229 - Ivan Brennan / @ivanbrennan

11/27/2014 at 02:13AM

14
#230 - Michael Aston / @pennyOsl

11/29/2014 at 09:39AM

14
#231 - Roberto Alegro / @robertoaall

11/30/2014 at 05:46AM

14
#232 - John Diamond / @jcdmnd

12/04/2014 at 11:49AM

14
#233 - Abdo Achkar / @Achkar

12/04/2014 at 10:56PM

14
#234 - Anderson Mesquita / @andersonvom

12/05/2014 at 12:00PM

14
#235 - benekeusz / @benekeusz

12/10/2014 at 03:45AM

14
#236 - david hu / @chin33z

12/14/2014 at 08:11AM

14
#237 - kimber gonzalez / @kimberlycreates

12/29/2014 at 08:30PM

14
#238 - juicelink / @juicelink

12/30/2014 at 01:41AM

14
#239 - yachi / @yaachi

12/30/2014 at 03:47AM

14
#240 - Filipe Almeida / @filipe_almeida

12/31/2014 at 03:00AM