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

1227 active golfers, 5430 entries

Leaderboard (lowest score wins):
12
#271 - お-せ-よ- / @OhSayYo

03/05/2019 at 06:42AM

12
#272 - Tim Dean / @Tmdean

06/06/2019 at 07:14PM

12
#273 - Neil Struthers / @struthersneil

07/17/2019 at 04:01PM

12
#274 - leo / @leo28356948

10/23/2019 at 01:09PM

12
#275 - Lory / @Lory46845742

11/01/2019 at 01:22PM

12
#276 - floyd / @floyd10086

03/10/2020 at 04:24AM

12
#277 - 薛浩滎 / @iTPChbTeI4ZW9s3

03/17/2020 at 06:02PM

12
#278 - Arthur Goodman / @ArthurGoodman3

04/30/2020 at 06:22PM

12
#279 - iBhagwan / @iiBhagwan

05/11/2020 at 08:00PM

12
#280 - Adrián Delgado / @Caritativito

07/12/2020 at 04:28AM

12
#281 - AAbraxas / @AAbraxas1

10/26/2020 at 07:16PM

12
#282 - chocolate / @chocola81394123

12/05/2020 at 01:38PM

12
#283 - Michel Viktor / @tomkpz

08/01/2021 at 05:17AM

13
#284 - Felix Boers / @felixboers

02/25/2018 at 02:05PM

13
#285 - Visualizing Medicine / @VisualizeMed

01/13/2019 at 11:07PM

13
#286 - r / @revanthedarth

02/09/2019 at 02:05AM

13
#287 - james_bunch / @james_bunch

04/08/2019 at 07:34PM

13
#288 - Arno / @arnoxmp

05/08/2019 at 09:19PM

13
#289 - shota_ogswr / @shota_ogasawara

11/24/2019 at 03:23PM

13
#290 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 07:04PM

14
#291 - Petro Тrouq / @zulolosi

11/06/2014 at 06:27AM

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

11/06/2014 at 12:49PM

14
#293 - Michael Comerford / @MComerford1

11/09/2014 at 03:10AM

14
#294 - Alex Kesling / @AlexKesling

11/10/2014 at 02:50AM

14
#295 - Philipp Aeschbach / @ihbmifqerg

11/10/2014 at 04:58PM

14
#296 - Hrvoje Kopinc / @Hrwaaa

11/16/2014 at 02:41PM

14
#297 - devos victor / @victordevos

11/16/2014 at 07:00PM

14
#298 - jake romer / @notjakeromer

11/19/2014 at 07:22AM

14
#299 - Alex K / @alex_kononovich

11/24/2014 at 08:28PM

14
#300 - Grisha Pushkov / @readoonly

11/25/2014 at 07:16PM