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 1268 remaining solutions by signing in and submitting your own entry
#1269 boumediane1 / @boumediane1 - Score: 72 - 01/09/25 @ 22:34
<C-V>Glr10u<C-V>jjjjjlr<Esc>s10<Esc><Esc>hjklhvl<C-V>jjjjjojg<C-A><Esc>u<C-V>jjjjojg<C-A><Esc>ukk<C-V>jjjjjojg<C-A><Esc><Esc>:wa<CR>:q<CR>

0 comments


Created by: @udioica

1269 active golfers, 5683 entries

Leaderboard (lowest score wins):
11
#121 - Francesco Sacchi / @depsir

07/16/2018 at 08:39PM

11
#122 - qed / @qed13308565

07/24/2018 at 05:31PM

11
#123 - Andrew Peterson / @FungalRaincloud

07/27/2018 at 06:36AM

11
#124 - Rajesh Sharma / @deepredsky

07/29/2018 at 09:41PM

11
#125 - Artsiom Kashkou / @pochka15

07/31/2018 at 08:24AM

11
#126 - Jack Magnus / @jadomag

08/04/2018 at 08:18PM

11
#127 - O / @O34721877

08/08/2018 at 12:48AM

11
#128 - Fergus Longley / @FergusLongley

08/18/2018 at 06:31PM

11
#129 - Hugo / @szeyattai

08/19/2018 at 03:23PM

11
#130 - Coruja Queridinha / @miriamretka

08/21/2018 at 10:05PM

11
#131 - daniel / @daniel31464605

08/25/2018 at 06:33PM

11
#132 - Roberto Martínez / @nilp0inter

08/27/2018 at 09:46PM

11
#133 - Chi Jun / @jun13blu

08/28/2018 at 09:06AM

11
#134 - Brendan B Amdocs / @AmdocsB

09/26/2018 at 04:37PM

11
#135 - Rasmus Bergström / @JRasmusBm

09/27/2018 at 08:34AM

11
#136 - a / @UseForVim

10/06/2018 at 11:47AM

11
#137 - Benjamin Kiesl / @BenjaminKiesl

10/12/2018 at 11:45AM

11
#138 - Alejandro Santander / @_ajsantander

10/14/2018 at 10:29PM

11
#139 - Dax / @zacoxi

10/19/2018 at 10:36AM

11
#140 - Nir Givon / @nir_givon

11/11/2018 at 02:15PM

11
#141 - name / @name65894813

11/15/2018 at 02:50PM

11
#142 - Wouter Horlings / @Achilleshiel

11/16/2018 at 11:37AM

11
#143 - Michael Rose / @mdroseDev

11/22/2018 at 04:07AM

11
#144 - Andreas Nordahl / @andreasnordahl

11/24/2018 at 07:31PM

11
#145 - timonegk / @timonegk

11/25/2018 at 03:06PM

11
#146 - Jonathan Cabezas / @John_Harkan

11/27/2018 at 11:56AM

11
#147 - Mihai / @mihaicristiant

11/30/2018 at 11:34AM

11
#148 - Ackman Syntax Error / @AckmanSux

12/24/2018 at 11:24AM

11
#149 - Sondre Lunde / @sondresl

12/30/2018 at 10:51AM

11
#150 - Blah Blah / @BlahBla08410389

01/12/2019 at 08:44PM